mirror of
https://git.salome-platform.org/gitpub/modules/geom.git
synced 2025-01-01 04:10:34 +05:00
0014047: EDF PAL 334 : Problem to select merged face with Create group window
fix pb that temporary result of getInPlace() remains visible after [Cancel]
This commit is contained in:
parent
9f34a7d727
commit
6c057505a6
@ -403,6 +403,8 @@ void GroupGUI_GroupDlg::setInPlaceObj( GEOM::GEOM_Object_var theObj )
|
|||||||
const char* tmpName = "__InPlaceObj__";
|
const char* tmpName = "__InPlaceObj__";
|
||||||
// remove old InPlaceObj
|
// remove old InPlaceObj
|
||||||
if ( !myInPlaceObj->_is_nil() ) {
|
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 )) {
|
if (_PTR(SObject) SO = getStudy()->studyDS()->FindObject( tmpName )) {
|
||||||
getStudy()->studyDS()->NewBuilder()->RemoveObjectWithChildren( SO );
|
getStudy()->studyDS()->NewBuilder()->RemoveObjectWithChildren( SO );
|
||||||
getGeomEngine()->RemoveObject(myInPlaceObj);
|
getGeomEngine()->RemoveObject(myInPlaceObj);
|
||||||
@ -431,6 +433,7 @@ void GroupGUI_GroupDlg::setInPlaceObj( GEOM::GEOM_Object_var theObj )
|
|||||||
myMain2InPlaceIndices.Bind( aMainIndex, aPlaceIndex );
|
myMain2InPlaceIndices.Bind( aMainIndex, aPlaceIndex );
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
myInPlaceObjSelectWay = subSelectionWay();
|
||||||
}
|
}
|
||||||
|
|
||||||
//=================================================================================
|
//=================================================================================
|
||||||
|
@ -94,6 +94,7 @@ private:
|
|||||||
GEOM::GEOM_Object_var myMainObj;
|
GEOM::GEOM_Object_var myMainObj;
|
||||||
GEOM::GEOM_Object_var myGroup;
|
GEOM::GEOM_Object_var myGroup;
|
||||||
GEOM::GEOM_Object_var myInPlaceObj;
|
GEOM::GEOM_Object_var myInPlaceObj;
|
||||||
|
int myInPlaceObjSelectWay;
|
||||||
TColStd_DataMapOfIntegerInteger myMain2InPlaceIndices;
|
TColStd_DataMapOfIntegerInteger myMain2InPlaceIndices;
|
||||||
|
|
||||||
QPushButton* mySelBtn;
|
QPushButton* mySelBtn;
|
||||||
|
Loading…
Reference in New Issue
Block a user