Salome HOME
cleaning some comments
[modules/hydro.git] / src / HYDROGUI / HYDROGUI_MeasurementToolOp.cxx
index 73a2bd6e7d24a41c83bc18bde41b803dfb0d756f..763c79cfbec3c2a1b51c2b6c766ddfab872220e2 100644 (file)
@@ -178,8 +178,6 @@ void HYDROGUI_MeasurementToolOp::onMousePress(SUIT_ViewWindow* theWindow, QMouse
 
     if ( !myAISLineM.IsNull() )
     {
-//       if ( aCtx->HasOpenedContext() )
-//         aCtx->CloseLocalContext();
       aCtx->Erase( myAISLineM, Standard_False );
     }
   }
@@ -320,8 +318,6 @@ void HYDROGUI_MeasurementToolOp::onMousePress(SUIT_ViewWindow* theWindow, QMouse
 
   aCtx->SetZLayer(myAISLineM, Graphic3d_ZLayerId_Topmost);
 
-//   if ( aCtx->HasOpenedContext() )
-//     aCtx->CloseLocalContext();
   aCtx->Display( myAISLineM, Standard_False );
   aCtx->UpdateCurrentViewer();
 }
@@ -338,8 +334,6 @@ void HYDROGUI_MeasurementToolOp::eraseLine()
         Handle(AIS_InteractiveContext) aCtx = aViewer->getAISContext();
         if ( !aCtx.IsNull() )
         {
-//           if ( aCtx->HasOpenedContext() )
-//             aCtx->CloseLocalContext();
           aCtx->Erase( myAISLineM, Standard_False );
         }
         myAISLineM.Nullify();