]> SALOME platform Git repositories - modules/shaper.git/blobdiff - src/ModelHighAPI/ModelHighAPI_Tools.cpp
Salome HOME
Avoid crash on clearing of a document by a script
[modules/shaper.git] / src / ModelHighAPI / ModelHighAPI_Tools.cpp
index dc328a5f614252a8981fc4d9f028738cff6e26c7..ffdab15225c33898e756327f385a0401c7d900ea 100644 (file)
@@ -46,6 +46,7 @@
 #include <ModelAPI_Session.h>
 #include <ModelAPI_Tools.h>
 #include <ModelAPI_ResultPart.h>
+#include <ModelAPI_Events.h>
 //--------------------------------------------------------------------------------------
 #include <Config_ModuleReader.h>
 //--------------------------------------------------------------------------------------
@@ -490,7 +491,6 @@ static bool checkDump(SessionPtr theSession,
   // close all before importation of the script
   theSession->closeAll();
 
-
   // execute the dumped
   PyGILState_STATE gstate = PyGILState_Ensure(); /* acquire python thread */
   static char aReadMode[] = "r";