]> SALOME platform Git repositories - modules/shaper.git/commitdiff
Salome HOME
Hide groups in the history for importing XAO
authorspo <sergey.pokhodenko@opencascade.com>
Fri, 4 Dec 2015 09:51:46 +0000 (12:51 +0300)
committerspo <sergey.pokhodenko@opencascade.com>
Mon, 20 Jun 2016 12:07:39 +0000 (15:07 +0300)
src/ExchangePlugin/ExchangePlugin_ImportFeature.cpp

index cecca95cf75e00d09adee6d2d1f86cd9ca9e6eed..73a35fd225aecf3cf6f1ca8e8d828ccc23a47d02 100644 (file)
@@ -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) {