diff --git a/src/app/valentina/xml/vpattern.cpp b/src/app/valentina/xml/vpattern.cpp index 99f43d8b8..4df13b4cb 100644 --- a/src/app/valentina/xml/vpattern.cpp +++ b/src/app/valentina/xml/vpattern.cpp @@ -236,7 +236,14 @@ void VPattern::Parse(const Document &parse) } domNode = domNode.nextSibling(); } - QTimer::singleShot(1000, Qt::VeryCoarseTimer, this, SLOT(RefreshPieceGeometry())); + if (qApp->IsGUIMode()) + { + QTimer::singleShot(1000, Qt::VeryCoarseTimer, this, SLOT(RefreshPieceGeometry())); + } + else if (qApp->CommandLine()->IsTestModeEnabled()) + { + RefreshPieceGeometry(); + } emit CheckLayout(); }