Salome HOME
ILMAB. Fix dump of "field.setStamp(step, stamp)" - invalid step is dumped
authoreap <eap@opencascade.com>
Fri, 4 Oct 2013 14:26:36 +0000 (14:26 +0000)
committereap <eap@opencascade.com>
Fri, 4 Oct 2013 14:26:36 +0000 (14:26 +0000)
src/GEOM/GEOM_Field.cxx

index 6b9338d7790ea10bf7e25ca1f84854df3b960f23..b045b7297e0e1e48045952a2a3ac3e7aef1e0f96 100644 (file)
@@ -580,7 +580,7 @@ void GEOM_FieldStep::SetStamp(const int stamp)
     data.SetStepStamp( stamp );
 
     TPythonDump( fun ) <<
-      GetField() << ".setStamp( " << data.GetStepID() << ", " << stamp << " )";
+      GetField() << ".setStamp( " << GetID() << ", " << stamp << " )";
   }
 }
 
@@ -628,7 +628,7 @@ GEOM_FieldStep::getFunctionToSetValuesAndDump( const TCollection_AsciiString& va
 
 //=======================================================================
 //function : SetValues
-//purpose  : Sets int or bool values
+//purpose  : Set int or bool values
 //=======================================================================
 
 bool GEOM_FieldStep::SetValues( const Handle(TColStd_HArray1OfInteger)& values )