The proposed changes fix a bug related to _occuredElementList in XmlSequenceParser::XmlSequenceParser. The change introduces a check if _occuredElementList contains a parser, and, if it does, the number of times the parser has been encountered is incremented, otherwise a new key is created in _occuredElementList for the parser.
Added a new scenario (cpp/applications/openScenarioTester/res/exampleFilesVersion1_2/FollowTrajectory_Nurbs.xosc) to test the changes.
Reference to a related issue in the repository
Related to issue #209
Add a description
The proposed changes fix a bug related to
_occuredElementList
inXmlSequenceParser::XmlSequenceParser
. The change introduces a check if_occuredElementList
contains a parser, and, if it does, the number of times the parser has been encountered is incremented, otherwise a new key is created in_occuredElementList
for the parser.Added a new scenario (cpp/applications/openScenarioTester/res/exampleFilesVersion1_2/FollowTrajectory_Nurbs.xosc) to test the changes.
Check the checklist