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);
//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);