From: nds Date: Wed, 2 Mar 2016 04:30:08 +0000 (+0300) Subject: Issue 1347: correction to fit all in the viewer the first visualized group result... X-Git-Tag: V_2.2.0~28 X-Git-Url: http://git.salome-platform.org/gitweb/?a=commitdiff_plain;h=11108dcc561bbd86b91d0d3057c69a4d99abb6f7;p=modules%2Fshaper.git Issue 1347: correction to fit all in the viewer the first visualized group result(it was implemented for body results only) --- 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; } }