diff --git a/src/app/valentina/xml/vpattern.cpp b/src/app/valentina/xml/vpattern.cpp index 4df13b4cb..f8346ef4b 100644 --- a/src/app/valentina/xml/vpattern.cpp +++ b/src/app/valentina/xml/vpattern.cpp @@ -3578,7 +3578,7 @@ void VPattern::RefreshPieceGeometry() { for(auto piece : qAsConst(updatePieces)) { - piece->RefreshGeometry(true); // Refresh internal paths + piece->RefreshGeometry(); QApplication::processEvents(); } updatePieces.clear(); diff --git a/src/libs/vtools/tools/vtoolseamallowance.cpp b/src/libs/vtools/tools/vtoolseamallowance.cpp index 4e09c6466..884707f53 100644 --- a/src/libs/vtools/tools/vtoolseamallowance.cpp +++ b/src/libs/vtools/tools/vtoolseamallowance.cpp @@ -62,6 +62,7 @@ #include #include #include +#include // Current version of seam allowance tag need for backward compatibility const quint8 VToolSeamAllowance::pieceVersion = 2; @@ -1335,13 +1336,32 @@ void VToolSeamAllowance::RefreshGeometry(bool updateChildren) m_seamAllowance->setPath(QPainterPath()); } - UpdateDetailLabel(); - UpdatePatternInfo(); - UpdateGrainline(); - UpdateExcludeState(); - if (updateChildren) + if (qApp->IsAppInGUIMode()) { - UpdateInternalPaths(); + QTimer::singleShot(100, this, [this, updateChildren]() + { + this->setFlag(QGraphicsItem::ItemSendsGeometryChanges, false); + UpdateDetailLabel(); + UpdatePatternInfo(); + UpdateGrainline(); + UpdateExcludeState(); + if (updateChildren) + { + UpdateInternalPaths(); + } + this->setFlag(QGraphicsItem::ItemSendsGeometryChanges, true); + }); + } + else + { + UpdateDetailLabel(); + UpdatePatternInfo(); + UpdateGrainline(); + UpdateExcludeState(); + if (updateChildren) + { + UpdateInternalPaths(); + } } m_passmarks->setPath(futurePassmarks.result());