diff --git a/src/libs/vlayout/vposition.cpp b/src/libs/vlayout/vposition.cpp index b194640fc..20eca8269 100644 --- a/src/libs/vlayout/vposition.cpp +++ b/src/libs/vlayout/vposition.cpp @@ -35,6 +35,7 @@ #include #include #include +#include //--------------------------------------------------------------------------------------------------------------------- VPosition::VPosition(const VContour &gContour, int j, const VLayoutDetail &detail, int i) @@ -45,6 +46,8 @@ VPosition::VPosition(const VContour &gContour, int j, const VLayoutDetail &detai //--------------------------------------------------------------------------------------------------------------------- void VPosition::run() { + QCoreApplication::processEvents(); + // We should use copy of the detail. VLayoutDetail workDetail = detail; @@ -63,6 +66,8 @@ void VPosition::run() for (int angle = 0; angle <= 360; angle = angle+180) { + QCoreApplication::processEvents(); + // We should use copy of the detail. VLayoutDetail workDetail = detail;