Salome HOME
Dump to python corrected.
[modules/hydro.git] / src / HYDROData / HYDROData_ProfileUZ.cxx
index 09fc5234de188ee49bcd28eb8e02cc8cac57873c..8247cba5c64255dacdfc4933be416e3362ca48df 100755 (executable)
@@ -31,7 +31,7 @@ HYDROData_ProfileUZ::~HYDROData_ProfileUZ()
 QStringList HYDROData_ProfileUZ::DumpToPython( MapOfTreatedObjects& theTreatedObjects ) const
 {
   QStringList aResList = dumpObjectCreation( theTreatedObjects );
-  QString aName = GetName();
+  QString aName = GetObjPyName();
 
   // Set polilyne data
   const TCollection_AsciiString& aSectName = GetSectionName( 0 );
@@ -46,7 +46,7 @@ QStringList HYDROData_ProfileUZ::DumpToPython( MapOfTreatedObjects& theTreatedOb
   {
     const Point& aSectPoint = aSectPointsList.Value( k );
 
-    aResList << QString( "%1.AddPoint( 0, QPointF( %2, %3 ) );" ).arg( aName )
+    aResList << QString( "%1.AddPoint( 0, gp_XY( %2, %3 ) );" ).arg( aName )
       .arg( aSectPoint.X() ).arg( aSectPoint.Y() );
   }