Berthold Stoeger 386e08b69c parser: don't crash when parsing <weight> tags
When encountering a <weight> tag, we would parse into the last
weightsystem. However, we only create weightsystems when
encountering <weightsystem> tag. Therefore, this code would
either crash or overwrite the previous weightsystem.

Instead, create a new weightsystem for each <weight> tag.

Moreover, make sure that inside a <weightsystem> tag a
weightsystem actually exists. This should be the case,
but who knows...?

Reported-by: Nihal Gabr <gabr.nihal@gmail.com>
Signed-off-by: Berthold Stoeger <bstoeger@mail.tuwien.ac.at>
2020-11-01 10:59:39 -08:00
..
2020-04-19 14:27:54 -07:00
2019-08-08 08:56:44 -07:00
2020-10-26 19:27:03 -07:00
2019-08-08 16:26:31 -07:00
2017-04-29 13:32:55 -07:00
2020-10-24 09:51:37 -07:00
2020-10-24 09:51:37 -07:00
2020-09-29 16:13:03 -07:00
2018-10-21 19:55:09 +03:00
2020-10-24 09:51:37 -07:00
2020-10-24 09:51:37 -07:00
2020-10-26 19:27:03 -07:00
2020-04-18 13:41:29 +02:00
2019-12-13 07:04:00 -05:00
2017-04-29 13:32:55 -07:00
2020-03-10 17:42:54 -07:00
2020-03-10 17:42:54 -07:00
2020-05-03 15:02:21 -07:00