From bf2a32646f6fb37af760000f00ec04c586d61bfa Mon Sep 17 00:00:00 2001 From: tgdwyer Date: Wed, 25 Jan 2006 02:01:23 +0000 Subject: [PATCH] Change to the way timestamps are used. Should now be more efficient. --- src/removeoverlap/block.cpp | 6 ++---- src/removeoverlap/blocks.cpp | 3 ++- 2 files changed, 4 insertions(+), 5 deletions(-) diff --git a/src/removeoverlap/block.cpp b/src/removeoverlap/block.cpp index 799fa5d8e..32b310153 100644 --- a/src/removeoverlap/block.cpp +++ b/src/removeoverlap/block.cpp @@ -129,14 +129,12 @@ Constraint *Block::findMinInConstraint() { #ifdef RECTANGLE_OVERLAP_LOGGING f<<" ... skipping internal constraint"<timeStamp > rb->timeStamp - && v->timeStamp < lb->timeStamp - || v->timeStamp < rb->timeStamp) { + } else if(v->timeStamp < lb->timeStamp) { // block at other end of constraint has been moved since this in->deleteMin(); outOfDate.push_back(v); #ifdef RECTANGLE_OVERLAP_LOGGING - f<<" reinserting out of date constraint"<merge(l, c, dist); r->mergeIn(l); - r->timeStamp=++blockTimeCtr; + r->timeStamp=blockTimeCtr; removeBlock(l); c=r->findMinInConstraint(); } -- 2.30.2