Salome HOME
Update the names of Regions and Zones if case name changed (Bug #110).
[modules/hydro.git] / src / HYDROData / HYDROData_Polyline.cxx
index fc6d72ceb7f3f1951185c7ba519b2f168d309f41..8e6b3d766f00ac112d036f6670709b591bf367bc 100755 (executable)
@@ -62,7 +62,7 @@ QStringList HYDROData_Polyline::DumpToPython( MapOfTreatedObjects& theTreatedObj
 {
   QStringList aResList;
 
-  Handle(HYDROData_Document) aDocument = HYDROData_Document::Document( this );
+  Handle(HYDROData_Document) aDocument = HYDROData_Document::Document( myLab );
   if ( aDocument.IsNull() )
     return aResList;
                              
@@ -448,6 +448,6 @@ void HYDROData_Polyline::UpdateWire( const PolylineData& theSections )
     }
   }
 
-  TopoDS_Wire aWire = aMakeWire.Wire();
-  SetTopShape( aWire );
+  TopoDS_Shape aShape = aMakeWire.Shape();
+  SetTopShape( aShape );
 }