From: eap Date: Fri, 3 Oct 2008 06:31:11 +0000 (+0000) Subject: 0014047: EDF PAL 334 : Problem to select merged face with Create group window X-Git-Tag: V5_1_0a3~12 X-Git-Url: http://git.salome-platform.org/gitweb/?a=commitdiff_plain;h=87435661cba30357e58f71dfc178c1c3f5a7fed8;p=modules%2Fgeom.git 0014047: EDF PAL 334 : Problem to select merged face with Create group window fix compilation on some platforms --- diff --git a/src/GroupGUI/GroupGUI_GroupDlg.cxx b/src/GroupGUI/GroupGUI_GroupDlg.cxx index 25af1ff7d..7d5d8a892 100644 --- a/src/GroupGUI/GroupGUI_GroupDlg.cxx +++ b/src/GroupGUI/GroupGUI_GroupDlg.cxx @@ -37,6 +37,7 @@ #include #include #include +#include #include #include @@ -403,8 +404,10 @@ void GroupGUI_GroupDlg::setInPlaceObj( GEOM::GEOM_Object_var theObj ) const char* tmpName = "__InPlaceObj__"; // remove old InPlaceObj if ( !myInPlaceObj->_is_nil() ) { - if ( myInPlaceObjSelectWay == GET_IN_PLACE ) // hide temporary object - GEOM_Displayer(getStudy()).Erase( myInPlaceObj, true ); + if ( myInPlaceObjSelectWay == GET_IN_PLACE ) { // hide temporary object + GEOM_Displayer aDisplayer(getStudy()); + aDisplayer.Erase( myInPlaceObj, true ); + } if (_PTR(SObject) SO = getStudy()->studyDS()->FindObject( tmpName )) { getStudy()->studyDS()->NewBuilder()->RemoveObjectWithChildren( SO ); getGeomEngine()->RemoveObject(myInPlaceObj);