From 6b1734cdf5221078d24c6439ab8a9c3d913b4f90 Mon Sep 17 00:00:00 2001 From: eap Date: Fri, 3 Oct 2008 06:30:33 +0000 Subject: [PATCH] 0014047: EDF PAL 334 : Problem to select merged face with Create group window fix compilation on some platforms --- src/GroupGUI/GroupGUI_GroupDlg.cxx | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) 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); -- 2.39.2