]> SALOME platform Git repositories - modules/visu.git/commitdiff
Salome HOME
To make the code compilable (must to be uncommented in future)
authorapo <apo@opencascade.com>
Wed, 10 May 2006 07:12:02 +0000 (07:12 +0000)
committerapo <apo@opencascade.com>
Wed, 10 May 2006 07:12:02 +0000 (07:12 +0000)
src/VISUGUI/VisuGUI.cxx

index 04efddeea3bbe1786376c1a21c5838b8c28efb2a..0431e7db3e46bf384adb15f3625bf711e7b32da9 100644 (file)
@@ -2706,16 +2706,16 @@ void VisuGUI::contextMenuPopup( const QString& theClient, QPopupMenu* theMenu, Q
        if (isExist && aType == VISU::TCURVE) {
           isCurves = true;
         }  else {
-         CORBA::Object_var anObject = GetSelectedObj(GetAppStudy(this), anIO->getEntry());
-         if (!CORBA::is_nil(anObject)) {
-           VISU::Prs3d_i* aPrsObject = dynamic_cast<VISU::Prs3d_i*>(VISU::GetServant(anObject).in());
-           if (aPrsObject->GetType() == VISU::TCUTPLANES) {
-             VISU::CutPlanes_i* aCutPrs = dynamic_cast<VISU::CutPlanes_i*>(aPrsObject);
-             if (aCutPrs) {
-               isOneCutPlane = aCutPrs->GetNbPlanes() == 1;
-             }
-           }
-         }
+         //CORBA::Object_var anObject = GetSelectedObj(GetAppStudy(this), anIO->getEntry());
+         //if (!CORBA::is_nil(anObject)) {
+         //  VISU::Prs3d_i* aPrsObject = dynamic_cast<VISU::Prs3d_i*>(VISU::GetServant(anObject).in());
+         //  if (aPrsObject->GetType() == VISU::TCUTPLANES) {
+         //    VISU::CutPlanes_i* aCutPrs = dynamic_cast<VISU::CutPlanes_i*>(aPrsObject);
+         //    if (aCutPrs) {
+         //    isOneCutPlane = aCutPrs->GetNbPlanes() == 1;
+         //    }
+         //  }
+         //}
        }
       }
     }