Don't hide EmptyPaperError by timeout to show real reason.

--HG--
branch : feature
This commit is contained in:
Roman Telezhynskyi 2019-04-01 19:21:39 +03:00
parent 406108107d
commit f407e969f4

View File

@ -241,7 +241,10 @@ bool MainWindowsNoGUI::GenerateLayout(VLayoutGenerator& lGenerator)
{
if (timer.hasExpired(lGenerator.GetNestingTime() * 60000))
{
nestingState = LayoutErrors::Timeout;
if (nestingState != LayoutErrors::EmptyPaperError)
{
nestingState = LayoutErrors::Timeout;
}
progress->Finished();
return true;
}