From 7a9447f7af051ba1a0e5e216fd9eeee1671e160f Mon Sep 17 00:00:00 2001 From: dismine Date: Thu, 22 Jan 2015 13:29:40 +0200 Subject: [PATCH] Don't set information for debug if no need. --HG-- branch : feature --- src/libs/vlayout/vlayoutpaper.cpp | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/src/libs/vlayout/vlayoutpaper.cpp b/src/libs/vlayout/vlayoutpaper.cpp index f4cc329ba..da473714e 100644 --- a/src/libs/vlayout/vlayoutpaper.cpp +++ b/src/libs/vlayout/vlayoutpaper.cpp @@ -166,10 +166,12 @@ bool VLayoutPaper::AddToSheet(const VLayoutDetail &detail, bool &stop) { VPosition *thread = new VPosition(d->globalContour, j, detail, i); //Info for debug - thread->setPaperIndex(d->paperIndex); - thread->setFrame(d->frame); - thread->setDetailsCount(d->details.count()); - thread->setDetails(d->details); + #ifdef LAYOUT_DEBUG + thread->setPaperIndex(d->paperIndex); + thread->setFrame(d->frame); + thread->setDetailsCount(d->details.count()); + thread->setDetails(d->details); + #endif thread->setAutoDelete(false); threads.append(thread);