Skip to content

Commit 2f0b650

Browse files
committed
Fixed bug in fetch interface function.
For some reason the QDomElement lost its connection after calling XmlDocument.toSTring(). Therefore, only the first interface for each submodel was fetched.
1 parent 8f6676e commit 2f0b650

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

OMEdit/OMEditGUI/Editors/MetaModelEditor.cpp

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -406,6 +406,7 @@ void MetaModelEditor::addInterfacesData(QDomElement interfaces)
406406
QDomElement subModel = subModelList.at(i).toElement();
407407
QDomElement interfaceDataElement = interfaces.firstChildElement();
408408
while (!interfaceDataElement.isNull()) {
409+
subModel = subModelList.at(i).toElement();
409410
if (subModel.attribute("Name").compare(interfaceDataElement.attribute("model")) == 0
410411
&& !existInterfaceData(subModel.attribute("Name"), interfaceDataElement.attribute("name"))) {
411412
QDomElement interfacePoint = mXmlDocument.createElement("InterfacePoint");

0 commit comments

Comments
 (0)