Salome HOME
Fix for the bug #42: point C is not activated, but point C is shown in preview in...
[modules/hydro.git] / src / HYDROGUI / HYDROGUI_PolylineOp.cxx
index b7384b705518ec40cac92cfbb0e7e9374c957a24..33986c67d9be5c6bb94f16e4e363aa412c456f33 100755 (executable)
@@ -45,7 +45,7 @@
 
 #include <Precision.hxx>
 
-static int ZValueIncrement = 0;
+//static int ZValueIncrement = 0;
 
 HYDROGUI_PolylineOp::HYDROGUI_PolylineOp( HYDROGUI_Module* theModule, bool theIsEdit )
 : HYDROGUI_Operation( theModule ), myIsEdit(theIsEdit), myCurve(NULL), 
@@ -104,7 +104,7 @@ void HYDROGUI_PolylineOp::startOperation()
   else{
     myCurve = new CurveCreator_Curve(CurveCreator::Dim2d);
     aPanel->setCurve(myCurve);
-    QString aNewName = HYDROGUI_Tool::GenerateObjectName( module(), "Polyline" );
+    QString aNewName = HYDROGUI_Tool::GenerateObjectName( module(), tr( "DEFAULT_POLYLINE_NAME" ) );
     aPanel->setPolylineName(aNewName);
   }
   aPanel->setCurve(myCurve);
@@ -154,8 +154,8 @@ bool HYDROGUI_PolylineOp::processApply( int& theUpdateFlags,
   else{
     aPolylineObj = Handle(HYDROData_Polyline)::DownCast( aDocument->CreateObject( KIND_POLYLINE ) );
 
-    double aZValue = double( ++ZValueIncrement ) * 1e-2; // empiric value, to be revised
-    aPolylineObj->SetZValue( aZValue );
+    //double aZValue = double( ++ZValueIncrement ) * 1e-2; // empiric value, to be revised
+    //aPolylineObj->SetZValue( aZValue );
   }
 
   if( aPolylineObj.IsNull() )