]> SALOME platform Git repositories - modules/shaper.git/commitdiff
Salome HOME
Fix for the issue #2431 : SISGSEGV when launching some unit tests from GUI
authormpv <mpv@opencascade.com>
Tue, 13 Feb 2018 12:53:08 +0000 (15:53 +0300)
committermpv <mpv@opencascade.com>
Tue, 13 Feb 2018 12:53:08 +0000 (15:53 +0300)
src/ModelHighAPI/ModelHighAPI_Tools.cpp

index b8415681e9ae09efc9b040f3be52023a74e8b32c..7d21ba70bbd0c0f48bd96796340bab4d61cd2235 100644 (file)
@@ -405,6 +405,8 @@ std::string storeFeatures(const std::string& theDocName, DocumentPtr theDoc,
 bool checkPythonDump()
 {
   SessionPtr aSession = ModelAPI_Session::get();
+  // 2431: set PartSet as a current document
+  aSession->setActiveDocument(aSession->moduleDocument(), true);
   // dump all to the python file
   aSession->startOperation("Check python dump");
   FeaturePtr aDump = aSession->moduleDocument()->addFeature("Dump");