From be7d0692a4de4b2857994bfbd06b17954b5aec90 Mon Sep 17 00:00:00 2001 From: Roman Telezhynskyi Date: Fri, 22 Feb 2019 12:19:52 +0200 Subject: [PATCH] Refresh piece geometry if in test mode. --HG-- branch : develop --- src/app/valentina/xml/vpattern.cpp | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) 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(); }