]> 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>
Tue, 30 Sep 2008 14:13:19 +0000 (14:13 +0000)
committereap <eap@opencascade.com>
Tue, 30 Sep 2008 14:13:19 +0000 (14:13 +0000)
     fix pb that temporary result of getInPlace() remains visible after [Cancel]

src/GroupGUI/GroupGUI_GroupDlg.cxx
src/GroupGUI/GroupGUI_GroupDlg.h

index 65ac4650323a4fa8ff70a7421786e5b71bb9ed03..3f9538419194623546ef7230cb4855fc93e94e2b 100644 (file)
@@ -408,6 +408,8 @@ 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 (_PTR(SObject) SO = getStudy()->studyDS()->FindObject( tmpName )) {
         getStudy()->studyDS()->NewBuilder()->RemoveObjectWithChildren( SO );
         getGeomEngine()->RemoveObject(myInPlaceObj);
@@ -436,6 +438,7 @@ void GroupGUI_GroupDlg::setInPlaceObj( GEOM::GEOM_Object_var theObj )
         myMain2InPlaceIndices.Bind( aMainIndex, aPlaceIndex );
     }
   }
+  myInPlaceObjSelectWay = subSelectionWay();
 }
 
 //=================================================================================
index 312048d8cbcec9551b29fa5552bf812ab5d5e716..eb9a907368ac150a94809476e15c30802b96db3f 100644 (file)
@@ -99,6 +99,7 @@ private:
   GEOM::GEOM_Object_var           myMainObj;
   GEOM::GEOM_Object_var           myGroup;
   GEOM::GEOM_Object_var           myInPlaceObj;
+  int                             myInPlaceObjSelectWay;
   TColStd_DataMapOfIntegerInteger myMain2InPlaceIndices;
 
   QPushButton*                    mySelBtn;
@@ -106,8 +107,6 @@ private:
   QPushButton*                    mySelBtn2;
   QLineEdit*                      myShape2Name;
   QButtonGroup*                   mySelectionWayGroup;
-  //QRadioButton*                   mySelSubBtn;
-  //QCheckBox*                      myPlaceCheckBox;
   QPushButton*                    mySelAllBtn;
   QPushButton*                    myAddBtn;
   QPushButton*                    myRemBtn;