From: jfa Date: Tue, 24 May 2005 10:34:51 +0000 (+0000) Subject: IPAL8862: T1.5: Clipping planes item has to be removed from the popup of presentation... X-Git-Tag: V2_2_0_VISU_improvement_2005-05-27~11 X-Git-Url: http://git.salome-platform.org/gitweb/?a=commitdiff_plain;h=e81834ae1c98fa0645f5feb40ea5fa4d8833540f;p=modules%2Fvisu.git IPAL8862: T1.5: Clipping planes item has to be removed from the popup of presentations in OCC and Plot2d viewers --- diff --git a/src/VISUGUI/VisuGUI.cxx b/src/VISUGUI/VisuGUI.cxx index 63ebe064..94d639fc 100644 --- a/src/VISUGUI/VisuGUI.cxx +++ b/src/VISUGUI/VisuGUI.cxx @@ -3171,10 +3171,10 @@ bool VisuGUI::CustomPopup (QAD_Desktop* parent, QPopupMenu* thePopup, const QStr } - thePopup->insertItem("Translate...", visuGUI, SLOT(TranslatePrs())); - thePopup->insertItem("Clipping planes", visuGUI, SLOT(ClippingPlanes())); - if (isVTKViewer) { + thePopup->insertItem("Translate...", visuGUI, SLOT(TranslatePrs())); + thePopup->insertItem("Clipping planes", visuGUI, SLOT(ClippingPlanes())); + if ( theParent == "Viewer" && ( aType == VISU::TMESH || aType == VISU::TSCALARMAP ||