Salome HOME
Wait cursor for solver operation
[modules/shaper.git] / src / SketchSolver / SketchSolver_Solver.cpp
index 40c76d1a772b5a863d13af4c711a1fe65ee8f6a3..b91d267f61b4625b1402b314787a0253a0850d66 100644 (file)
@@ -3,6 +3,7 @@
 // Author:  Artem ZHIDKOV
 
 #include "SketchSolver_Solver.h"
+#include <Events_LongOp.h>
 
 SketchSolver_Solver::SketchSolver_Solver()
 {
@@ -111,7 +112,9 @@ int SketchSolver_Solver::solve()
   if (myEquationsSystem.constraints <= 0)
     return SLVS_RESULT_EMPTY_SET;
 
+  Events_LongOp::start(this);
   Slvs_Solve(&myEquationsSystem, myGroupID);
+  Events_LongOp::end(this);
 
   return myEquationsSystem.result;
 }