]> SALOME platform Git repositories - modules/hydro.git/commitdiff
Salome HOME
Point type corrected for python dump.
authoradv <adv@opencascade.com>
Thu, 16 Jan 2014 09:58:48 +0000 (09:58 +0000)
committeradv <adv@opencascade.com>
Thu, 16 Jan 2014 09:58:48 +0000 (09:58 +0000)
src/HYDROData/HYDROData_PolylineXY.cxx
src/HYDROData/HYDROData_ProfileUZ.cxx

index f9137e66d6fd0d1520c5821efc922e86800c4160..fd53ca013db9873502750e7b5dd8e8ef92dfe858 100755 (executable)
@@ -129,7 +129,7 @@ QStringList HYDROData_PolylineXY::DumpToPython( MapOfTreatedObjects& theTreatedO
     {
       const Point& aSectPoint = aSectPointsList.Value( k );
 
-      aResList << QString( "%1.AddPoint( %2, QPointF( %3, %4 ) );" ).arg( aPolylineName )
+      aResList << QString( "%1.AddPoint( %2, gp_XY( %3, %4 ) );" ).arg( aPolylineName )
         .arg( i - 1 ).arg( aSectPoint.X() ).arg( aSectPoint.Y() );
     }
   }
index 09fc5234de188ee49bcd28eb8e02cc8cac57873c..492252980a9bd71df7508e7ec6afb975c724ebaa 100755 (executable)
@@ -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() );
   }