From: spo Date: Fri, 4 Dec 2015 09:51:46 +0000 (+0300) Subject: Hide groups in the history for importing XAO X-Git-Tag: V_2.4.0~57 X-Git-Url: http://git.salome-platform.org/gitweb/?a=commitdiff_plain;h=b91d191d1f7bbb768762c774c098f244fe79dc6d;p=modules%2Fshaper.git Hide groups in the history for importing XAO --- diff --git a/src/ExchangePlugin/ExchangePlugin_ImportFeature.cpp b/src/ExchangePlugin/ExchangePlugin_ImportFeature.cpp index cecca95cf..73a35fd22 100644 --- a/src/ExchangePlugin/ExchangePlugin_ImportFeature.cpp +++ b/src/ExchangePlugin/ExchangePlugin_ImportFeature.cpp @@ -191,7 +191,10 @@ void ExchangePlugin_ImportFeature::importXAO(const std::string& theFileName) aRefListOfGroups->append(aGroupFeature); - document()->setCurrentFeature(aGroupFeature, true); + // hide the group in the history + document()->setCurrentFeature(aGroupFeature, false); + // groups features is internal part of the import + aGroupFeature->setInHistory(aGroupFeature, false); } } catch (XAO::XAO_Exception& e) {