From 93334c7f7d4d287865ec6b221085cf14ac88d6fb Mon Sep 17 00:00:00 2001 From: Roman Telezhynskyi Date: Tue, 26 Mar 2019 18:21:31 +0200 Subject: [PATCH] Show error when preparing pieces fails. --HG-- branch : develop --- src/libs/vlayout/vbank.cpp | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/src/libs/vlayout/vbank.cpp b/src/libs/vlayout/vbank.cpp index a4230f870..343bd0986 100644 --- a/src/libs/vlayout/vbank.cpp +++ b/src/libs/vlayout/vbank.cpp @@ -180,14 +180,14 @@ bool VBank::Prepare() { 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; return prepare; } 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; return prepare; } @@ -213,8 +213,8 @@ bool VBank::Prepare() const qint64 square = details.at(i).Square(); if (square <= 0) { - qCDebug(lBank, "Preparing data for layout error: Detail '%s' square <= 0", - qUtf8Printable(details.at(i).GetName())); + qCCritical(lBank, "Preparing data for layout error: Detail '%s' square <= 0", + qUtf8Printable(details.at(i).GetName())); prepare = false; return prepare; }