From: apo Date: Wed, 10 May 2006 07:12:02 +0000 (+0000) Subject: To make the code compilable (must to be uncommented in future) X-Git-Tag: T3_2_0b1~6 X-Git-Url: http://git.salome-platform.org/gitweb/?a=commitdiff_plain;h=eaf4143ad5f9a49eb09740ca25c3cf0fdc811aa2;p=modules%2Fvisu.git To make the code compilable (must to be uncommented in future) --- diff --git a/src/VISUGUI/VisuGUI.cxx b/src/VISUGUI/VisuGUI.cxx index 04efddee..0431e7db 100644 --- a/src/VISUGUI/VisuGUI.cxx +++ b/src/VISUGUI/VisuGUI.cxx @@ -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::GetServant(anObject).in()); - if (aPrsObject->GetType() == VISU::TCUTPLANES) { - VISU::CutPlanes_i* aCutPrs = dynamic_cast(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::GetServant(anObject).in()); + // if (aPrsObject->GetType() == VISU::TCUTPLANES) { + // VISU::CutPlanes_i* aCutPrs = dynamic_cast(aPrsObject); + // if (aCutPrs) { + // isOneCutPlane = aCutPrs->GetNbPlanes() == 1; + // } + // } + //} } } }