From b2f268ae3684fca52e857191a6992e449f582f62 Mon Sep 17 00:00:00 2001 From: vsv Date: Thu, 12 Dec 2019 16:58:40 +0300 Subject: [PATCH] Fix bug with find Group result and feature --- src/XGUI/XGUI_FacesPanel.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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(); } //******************************************************************** -- 2.39.2