]> SALOME platform Git repositories - modules/geom.git/commitdiff
Salome HOME
0014047: EDF PAL 334 : Problem to select merged face with Create group window
authoreap <eap@opencascade.com>
Fri, 3 Oct 2008 06:30:33 +0000 (06:30 +0000)
committereap <eap@opencascade.com>
Fri, 3 Oct 2008 06:30:33 +0000 (06:30 +0000)
     fix compilation on some platforms

src/GroupGUI/GroupGUI_GroupDlg.cxx

index 3f9538419194623546ef7230cb4855fc93e94e2b..41109a73210a9b2b977b2eb09590c793e631f38d 100644 (file)
@@ -37,6 +37,7 @@
 
 #include "GEOMBase.h"
 #include "GEOMImpl_Types.hxx"
+#include "GEOM_Displayer.h"
 
 #include <qlabel.h>
 #include <qlistbox.h>
@@ -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);