Fixed working with tests

This commit is contained in:
AgCaliva
2023-08-29 14:41:58 -03:00
parent 0df27979a1
commit 1f6545557d
12 changed files with 234 additions and 7 deletions

View File

@@ -418,9 +418,9 @@ void ExtensionContainer::readExtension(Base::DocumentReader &reader,XERCES_CPP_N
throw Base::TypeError(str.str());
}
ext->initExtension(this);
if( strcmp(ext->getExtensionTypeId().getName(), type_cstr) == 0 )
ext->extensionRestore(reader);
}
if (ext && strcmp(ext->getExtensionTypeId().getName(), type_cstr) == 0)
ext->extensionRestore(reader);
}
catch (const Base::XMLParseException&) {
throw; // re-throw