From: vsv Date: Thu, 21 May 2020 15:52:30 +0000 (+0300) Subject: Issue #3254: Exception setting view normal to face X-Git-Tag: V9_5_0rc1~39 X-Git-Url: http://git.salome-platform.org/gitweb/?a=commitdiff_plain;h=6254f1b6e440a71dab261cf28e23a8d3ff7a1bb7;p=modules%2Fshaper.git Issue #3254: Exception setting view normal to face --- diff --git a/src/XGUI/XGUI_ContextMenuMgr.cpp b/src/XGUI/XGUI_ContextMenuMgr.cpp index 8feca1f34..7145c235f 100644 --- a/src/XGUI/XGUI_ContextMenuMgr.cpp +++ b/src/XGUI/XGUI_ContextMenuMgr.cpp @@ -537,9 +537,7 @@ void XGUI_ContextMenuMgr::updateViewerMenu() canBeShaded = aDisplayer->canBeShaded(aObject); } if (aShape.get()) { - if (aShape->isPlanar()) { - hasPlanar = true; - } + hasPlanar = (aShape->isFace() && aShape->isPlanar()); } } if (isVisible) {