Toponaming: Fix save and restore of elementmaps

This commit is contained in:
bgbsww
2024-06-23 15:17:45 -04:00
parent 6fd73487c7
commit 3c3709cb5d
12 changed files with 226 additions and 42 deletions

View File

@@ -264,7 +264,7 @@ bool Base::XMLReader::isEndOfDocument() const
void Base::XMLReader::readEndElement(const char* ElementName, int level)
{
// if we are already at the end of the current element
if (ReadType == EndElement && ElementName && LocalName == ElementName
if ( (ReadType == EndElement || ReadType == StartEndElement) && ElementName && LocalName == ElementName
&& (level < 0 || level == Level)) {
return;
}