Salome HOME
Porting documentation on the Doxygen-1.8.0
[modules/smesh.git] / src / SMESHGUI / SMESHGUI_XmlHandler.cxx
index b4cff1e938235958190276f72c50e984a00a401c..69b68ddbecfad05b347b1d50f7dd2cc6e7d28b31 100644 (file)
@@ -165,11 +165,11 @@ bool SMESHGUI_XmlHandler::startElement (const QString&, const QString&,
 
       if (qName == "algorithm")
       {
-        myAlgorithmsMap[aHypAlType] = aHypData;
+        myAlgorithmsMap.insert(aHypAlType,aHypData);
       }
       else
       {
-        myHypothesesMap[aHypAlType] = aHypData;
+        myHypothesesMap.insert(aHypAlType,aHypData);
       }
     }
   }
@@ -191,6 +191,13 @@ bool SMESHGUI_XmlHandler::startElement (const QString&, const QString&,
       }
     }
   }
+  else if ( qName == "python-wrap" ||
+            qName == "algo"        ||
+            qName == "hypo"         )
+  {
+    // elements used in SMESH_2smeshpy
+    return true;
+  }
   else
   {
     // error