]> SALOME platform Git repositories - modules/shaper.git/blobdiff - src/ModelHighAPI/ModelHighAPI_Tools.cpp
Salome HOME
Issue #20513: Filling problem
[modules/shaper.git] / src / ModelHighAPI / ModelHighAPI_Tools.cpp
index 7f959291cb4d815416327ca4a4064d2235b31dec..1e2648cf2305c7badc4f82ad1e32f6e25910cbf9 100644 (file)
@@ -359,7 +359,7 @@ GeomAPI_Shape::ShapeType getShapeType(const ModelHighAPI_Selection& theSelection
     case ModelHighAPI_Selection::VT_ResultSubShapePair: {
       ResultSubShapePair aPair = theSelection.resultSubShapePair();
       GeomShapePtr aShape = aPair.second;
-      if(!aShape.get()) {
+      if(!aShape.get() && aPair.first.get()) {
         aShape = aPair.first->shape();
       }
       if(!aShape.get()) {