Show error when preparing pieces fails.

--HG--
branch : develop
This commit is contained in:
Roman Telezhynskyi 2019-03-26 18:21:31 +02:00
parent 6b6d124cbb
commit 93334c7f7d

View file

@ -180,14 +180,14 @@ bool VBank::Prepare()
{ {
if (layoutWidth <= 0) if (layoutWidth <= 0)
{ {
qCDebug(lBank, "Preparing data for layout error: Layout paper sheet <= 0"); qCCritical(lBank, "Preparing data for layout error: Layout paper sheet <= 0");
prepare = false; prepare = false;
return prepare; return prepare;
} }
if (details.isEmpty()) if (details.isEmpty())
{ {
qCDebug(lBank, "Preparing data for layout error: List of details is empty"); qCCritical(lBank, "Preparing data for layout error: List of details is empty");
prepare = false; prepare = false;
return prepare; return prepare;
} }
@ -213,8 +213,8 @@ bool VBank::Prepare()
const qint64 square = details.at(i).Square(); const qint64 square = details.at(i).Square();
if (square <= 0) if (square <= 0)
{ {
qCDebug(lBank, "Preparing data for layout error: Detail '%s' square <= 0", qCCritical(lBank, "Preparing data for layout error: Detail '%s' square <= 0",
qUtf8Printable(details.at(i).GetName())); qUtf8Printable(details.at(i).GetName()));
prepare = false; prepare = false;
return prepare; return prepare;
} }