#include "GEOMBase.h"
#include "GEOMImpl_Types.hxx"
+#include "GEOM_Displayer.h"
#include <qlabel.h>
#include <qlistbox.h>
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);