From: vsv Date: Thu, 12 Dec 2019 13:58:40 +0000 (+0300) Subject: Fix bug with find Group result and feature X-Git-Tag: V9_5_0a1~96 X-Git-Url: http://git.salome-platform.org/gitweb/?a=commitdiff_plain;h=b2f268ae3684fca52e857191a6992e449f582f62;p=modules%2Fshaper.git Fix bug with find Group result and feature --- diff --git a/src/XGUI/XGUI_FacesPanel.cpp b/src/XGUI/XGUI_FacesPanel.cpp index 67e3a5aa3..b9a5f5f41 100644 --- a/src/XGUI/XGUI_FacesPanel.cpp +++ b/src/XGUI/XGUI_FacesPanel.cpp @@ -70,7 +70,7 @@ bool getGroup(ModuleBase_ViewerPrsPtr thePrs, ResultGroupPtr& theResGroup, if (theGroupFeature.get()) theResGroup = std::dynamic_pointer_cast(theGroupFeature->firstResult()); } - return true; + return theGroupFeature.get() && theResGroup.get(); } //********************************************************************