0014047: EDF PAL 334 : Problem to select merged face with Create group window

fix compilation on some platforms
This commit is contained in:
eap 2008-10-03 06:30:33 +00:00
parent ba274e7ad1
commit 6b1734cdf5

View 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);