]> 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:31:11 +0000 (06:31 +0000)
committereap <eap@opencascade.com>
Fri, 3 Oct 2008 06:31:11 +0000 (06:31 +0000)
     fix compilation on some platforms

src/GroupGUI/GroupGUI_GroupDlg.cxx

index 25af1ff7d8bb63632b1fa11b8f6928216ca0c245..7d5d8a8924a8097c99bf0bb55482de369c5cd2a4 100644 (file)
@@ -37,6 +37,7 @@
 #include <GEOMBase.h>
 #include <GeometryGUI.h>
 #include <GEOMImpl_Types.hxx>
+#include <GEOM_Displayer.h>
 
 #include <QLabel>
 #include <QListWidget>
@@ -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);