Fix validation a grainline position.

This commit is contained in:
Roman Telezhynskyi 2022-07-15 09:51:50 +03:00
parent f020a806d4
commit 62f84c06a5

View File

@ -231,15 +231,14 @@ void VPattern::Parse(const Document &parse)
} }
domNode = domNode.nextSibling(); domNode = domNode.nextSibling();
} }
if (VApplication::VApp()->IsGUIMode()) if (VApplication::IsGUIMode())
{ {
QTimer::singleShot(1000, Qt::VeryCoarseTimer, this, SLOT(RefreshPieceGeometry())); QTimer::singleShot(1000, Qt::VeryCoarseTimer, this, &VPattern::RefreshPieceGeometry);
} }
else if (VApplication::VApp()->CommandLine()->IsTestModeEnabled()) else if (VApplication::VApp()->CommandLine()->IsTestModeEnabled())
{ {
RefreshPieceGeometry(); RefreshPieceGeometry();
} }
emit CheckLayout();
m_parsing = false; m_parsing = false;
} }
@ -3732,6 +3731,8 @@ void VPattern::RefreshPieceGeometry()
return; return;
} }
} }
emit CheckLayout();
} }
//--------------------------------------------------------------------------------------------------------------------- //---------------------------------------------------------------------------------------------------------------------