Don't set information for debug if no need.

--HG--
branch : feature
This commit is contained in:
dismine 2015-01-22 13:29:40 +02:00
parent 2aa9de5f94
commit 7a9447f7af

View File

@ -166,10 +166,12 @@ bool VLayoutPaper::AddToSheet(const VLayoutDetail &detail, bool &stop)
{ {
VPosition *thread = new VPosition(d->globalContour, j, detail, i); VPosition *thread = new VPosition(d->globalContour, j, detail, i);
//Info for debug //Info for debug
thread->setPaperIndex(d->paperIndex); #ifdef LAYOUT_DEBUG
thread->setFrame(d->frame); thread->setPaperIndex(d->paperIndex);
thread->setDetailsCount(d->details.count()); thread->setFrame(d->frame);
thread->setDetails(d->details); thread->setDetailsCount(d->details.count());
thread->setDetails(d->details);
#endif
thread->setAutoDelete(false); thread->setAutoDelete(false);
threads.append(thread); threads.append(thread);