From 87435661cba30357e58f71dfc178c1c3f5a7fed8 Mon Sep 17 00:00:00 2001 From: eap Date: Fri, 3 Oct 2008 06:31:11 +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 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); -- 2.39.2