Salome HOME
bug #136 - problems with performance
[modules/hydro.git] / src / HYDROGUI / HYDROGUI_PolylineOp.cxx
index 74cb0f6307f2bc8264dbbfcfd041ed8e4b649e90..8ff209f50dfa3105db4fe141499aa21177e8c0b8 100755 (executable)
@@ -284,7 +284,7 @@ void HYDROGUI_PolylineOp::displayPreview()
       {
         CurveCreator_Displayer* aDisplayer = new CurveCreator_Displayer( aCtx );
         myCurve->setDisplayer( aDisplayer );
-        aDisplayer->display( myCurve->constructWire() );
+        aDisplayer->display( myCurve->constructWire(), true );
       }
     }
   }
@@ -300,7 +300,7 @@ void HYDROGUI_PolylineOp::erasePreview()
       Handle(AIS_InteractiveContext) aCtx = aViewer->getAISContext();
       if( !aCtx.IsNull() )
       {
-        aDisplayer->erase();
+        aDisplayer->erase( true );
       }
     }
   }