]> SALOME platform Git repositories - modules/shaper.git/commitdiff
Salome HOME
Issue #3254: Exception setting view normal to face
authorArtem Zhidkov <Artem.Zhidkov@opencascade.com>
Wed, 20 May 2020 13:44:53 +0000 (16:44 +0300)
committerArtem Zhidkov <Artem.Zhidkov@opencascade.com>
Wed, 20 May 2020 13:44:53 +0000 (16:44 +0300)
src/XGUI/XGUI_Workshop.cpp

index bca2c85b32608781aa20c1b6fee858db37f718b3..37bbb612d51799c975937c555818ff93023ff464 100644 (file)
@@ -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;
     }