From: eap Date: Fri, 3 Oct 2008 06:30:33 +0000 (+0000) Subject: 0014047: EDF PAL 334 : Problem to select merged face with Create group window X-Git-Tag: RELIQUAT_4x_25102008~10 X-Git-Url: http://git.salome-platform.org/gitweb/?a=commitdiff_plain;h=6b1734cdf5221078d24c6439ab8a9c3d913b4f90;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 3f9538419..41109a732 100644 --- a/src/GroupGUI/GroupGUI_GroupDlg.cxx +++ b/src/GroupGUI/GroupGUI_GroupDlg.cxx @@ -37,6 +37,7 @@ #include "GEOMBase.h" #include "GEOMImpl_Types.hxx" +#include "GEOM_Displayer.h" #include #include @@ -408,8 +409,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);