From: Artem Zhidkov Date: Wed, 20 May 2020 13:44:53 +0000 (+0300) Subject: Issue #3254: Exception setting view normal to face X-Git-Tag: V9_5_0rc1~43 X-Git-Url: http://git.salome-platform.org/gitweb/?a=commitdiff_plain;h=8a76f7e322a30c51a6af1b7a7b00a22b962369a0;p=modules%2Fshaper.git Issue #3254: Exception setting view normal to face --- diff --git a/src/XGUI/XGUI_Workshop.cpp b/src/XGUI/XGUI_Workshop.cpp index bca2c85b3..37bbb612d 100644 --- a/src/XGUI/XGUI_Workshop.cpp +++ b/src/XGUI/XGUI_Workshop.cpp @@ -2787,7 +2787,7 @@ void XGUI_Workshop::setNormalView(bool toInvert) GeomShapePtr aPlanarFace; foreach(ModuleBase_ViewerPrsPtr aPrs, aPrsList) { GeomShapePtr aShape = aPrs->shape(); - if (aShape.get() && aShape->isPlanar()) { + if (aShape.get() && aShape->isFace() && aShape->isPlanar()) { aPlanarFace = aShape; break; }