]> SALOME platform Git repositories - modules/shaper.git/commitdiff
Salome HOME
Fix bug with find Group result and feature
authorvsv <vsv@opencascade.com>
Thu, 12 Dec 2019 13:58:40 +0000 (16:58 +0300)
committervsv <vsv@opencascade.com>
Thu, 12 Dec 2019 13:58:40 +0000 (16:58 +0300)
src/XGUI/XGUI_FacesPanel.cpp

index 67e3a5aa34bba9cb54fa0ea0c5e3f0f3cf1a035e..b9a5f5f417e897c962d6322505a1481c8e158e52 100644 (file)
@@ -70,7 +70,7 @@ bool getGroup(ModuleBase_ViewerPrsPtr thePrs, ResultGroupPtr& theResGroup,
     if (theGroupFeature.get())
       theResGroup = std::dynamic_pointer_cast<ModelAPI_ResultGroup>(theGroupFeature->firstResult());
   }
-  return true;
+  return theGroupFeature.get() && theResGroup.get();
 }
 
 //********************************************************************