Show error when preparing pieces fails.
--HG-- branch : develop
This commit is contained in:
parent
6b6d124cbb
commit
93334c7f7d
|
@ -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,7 +213,7 @@ 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;
|
||||||
|
|
Loading…
Reference in New Issue
Block a user