Don't hide EmptyPaperError by timeout to show real reason.
--HG-- branch : feature
This commit is contained in:
parent
406108107d
commit
f407e969f4
|
@ -240,8 +240,11 @@ bool MainWindowsNoGUI::GenerateLayout(VLayoutGenerator& lGenerator)
|
|||
auto IsTimeout = [&progress, &lGenerator, timer, &nestingState]()
|
||||
{
|
||||
if (timer.hasExpired(lGenerator.GetNestingTime() * 60000))
|
||||
{
|
||||
if (nestingState != LayoutErrors::EmptyPaperError)
|
||||
{
|
||||
nestingState = LayoutErrors::Timeout;
|
||||
}
|
||||
progress->Finished();
|
||||
return true;
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue
Block a user