Salome HOME
cleaning some comments
[modules/hydro.git] / src / HYDROGUI / HYDROGUI_SplitPolylinesOp.cxx
index d6aa45b50614e0d6c2278d7778a3f41006785b13..a30a0e13a537205c46d1791a9c860633fd02e780 100644 (file)
@@ -198,8 +198,6 @@ void HYDROGUI_SplitPolylinesOp::OnUpdatePreview()
 
         if ( mySplitPointPreview )
         {
-//           if ( aCtx->HasOpenedContext() )
-//             aCtx->CloseLocalContext();
           if ( aPanel->GetMode() == HYDROGUI_SplitPolylinesDlg::ByPoint )
           {
             if ( !aCtx->IsDisplayed( mySplitPointPreview ) )
@@ -306,14 +304,10 @@ void HYDROGUI_SplitPolylinesOp::onMousePress(SUIT_ViewWindow* theWindow, QMouseE
 
   if ( mySplitPointPreview )
   {
-//     if ( aCtx->HasOpenedContext() )
-//       aCtx->CloseLocalContext();
     aCtx->Erase( mySplitPointPreview, Standard_False );
   }
 
   mySplitPointPreview = new AIS_Shape( aShape );
-//   if ( aCtx->HasOpenedContext() )
-//     aCtx->CloseLocalContext();
   aCtx->Display( mySplitPointPreview, Standard_False );
 
   aCtx->UpdateCurrentViewer();