From 11108dcc561bbd86b91d0d3057c69a4d99abb6f7 Mon Sep 17 00:00:00 2001 From: nds Date: Wed, 2 Mar 2016 07:30:08 +0300 Subject: [PATCH] Issue 1347: correction to fit all in the viewer the first visualized group result(it was implemented for body results only) --- src/XGUI/XGUI_WorkshopListener.cpp | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/src/XGUI/XGUI_WorkshopListener.cpp b/src/XGUI/XGUI_WorkshopListener.cpp index 57025c6c7..03aaf4fa1 100755 --- a/src/XGUI/XGUI_WorkshopListener.cpp +++ b/src/XGUI/XGUI_WorkshopListener.cpp @@ -29,6 +29,7 @@ #include #include #include +#include #include #include @@ -578,9 +579,9 @@ bool XGUI_WorkshopListener::displayObject(ObjectPtr theObj, bool& theFirstVisual } else { aDisplayed = aDisplayer->display(theObj, false); if (aDisplayed) { - ResultPtr aResult = std::dynamic_pointer_cast(theObj); - if (aResult.get() != NULL) { - std::shared_ptr aShapePtr = ModelAPI_Tools::shape(aResult); + ResultPtr aGroup = std::dynamic_pointer_cast(theObj); + if (aGroup.get() != NULL) { + std::shared_ptr aShapePtr = ModelAPI_Tools::shape(aGroup); theFirstVisualizedBody = aShapePtr.get() != NULL; } } -- 2.39.2