Salome HOME
Dump to python corrected.
[modules/hydro.git] / src / HYDROData / HYDROData_PolylineXY.cxx
index fd53ca013db9873502750e7b5dd8e8ef92dfe858..cdbc3752ed80be47369e61c458b30f9c741dcac5 100755 (executable)
@@ -107,7 +107,19 @@ HYDROData_PolylineXY::~HYDROData_PolylineXY()
 QStringList HYDROData_PolylineXY::DumpToPython( MapOfTreatedObjects& theTreatedObjects ) const
 {
   QStringList aResList = dumpObjectCreation( theTreatedObjects );
-  QString aPolylineName = GetName();
+  QString aPolylineName = GetObjPyName();
+
+  // Set the wire color
+  QStringList aWireColorDef;
+
+  QColor aWireColor = GetWireColor();
+  setPythonObjectColor( aWireColorDef, aWireColor, DefaultWireColor(), "SetWireColor" );
+  
+  if ( !aWireColorDef.isEmpty() )
+  {
+    aResList << aWireColorDef;
+    aResList << QString( "" );
+  }
 
   // Set polilyne data
   NCollection_Sequence<TCollection_AsciiString>           aSectNames;