Salome HOME
bug #136 - problems with performance
[modules/hydro.git] / src / HYDROGUI / HYDROGUI_ProfileOp.cxx
index 1bb26b87ac799932d4d3faef274c41073011f20e..8b11b28916738cfb9faffa666fd5bffdb303c077 100644 (file)
@@ -202,7 +202,7 @@ void HYDROGUI_ProfileOp::displayPreview()
     {
       CurveCreator_Displayer* aDisplayer = new CurveCreator_Displayer( aCtx );
       myProfile->setDisplayer( aDisplayer );
-      aDisplayer->display( myProfile->constructWire() );
+      aDisplayer->display( myProfile->constructWire(), true );
     }
   }
 }
@@ -216,7 +216,7 @@ void HYDROGUI_ProfileOp::erasePreview()
     Handle(AIS_InteractiveContext) aCtx = aPanel->getAISContext();
     if( !aCtx.IsNull() )
     {
-      aDisplayer->erase();
+      aDisplayer->erase( true );
     }
   }
 }