summaryrefslogtreecommitdiffstats
path: root/src/removeoverlap/block.cpp
diff options
context:
space:
mode:
authorTim Dwyer <tgdwyer@gmail.com>2006-02-06 05:22:54 +0000
committertgdwyer <tgdwyer@users.sourceforge.net>2006-02-06 05:22:54 +0000
commit26764b3878c6aec5f315f9f63c8721640218b826 (patch)
tree95545994301bc2fb624076245706d4aea8f8bca8 /src/removeoverlap/block.cpp
parentadd scaling and translation so that the DXFs open properly in robomaster (diff)
downloadinkscape-26764b3878c6aec5f315f9f63c8721640218b826.tar.gz
inkscape-26764b3878c6aec5f315f9f63c8721640218b826.zip
DBL_MIN replaced by -DBL_MAX which is what I meant all along.
Fixes bug. (bzr r89)
Diffstat (limited to 'src/removeoverlap/block.cpp')
-rw-r--r--src/removeoverlap/block.cpp8
1 files changed, 8 insertions, 0 deletions
diff --git a/src/removeoverlap/block.cpp b/src/removeoverlap/block.cpp
index ebf56ea9e..7a2ab53af 100644
--- a/src/removeoverlap/block.cpp
+++ b/src/removeoverlap/block.cpp
@@ -104,6 +104,9 @@ void Block::mergeIn(Block *b) {
findMinInConstraint();
b->findMinInConstraint();
in->merge(b->in);
+#ifdef RECTANGLE_OVERLAP_LOGGING
+ f<<" merged heap: "<<*in<<endl;
+#endif
}
void Block::mergeOut(Block *b) {
findMinOutConstraint();
@@ -171,6 +174,11 @@ Constraint *Block::findMinOutConstraint() {
}
void Block::deleteMinInConstraint() {
in->deleteMin();
+#ifdef RECTANGLE_OVERLAP_LOGGING
+ ofstream f(LOGFILE,ios::app);
+ f<<"deleteMinInConstraint... "<<endl;
+ f<<" result: "<<*in<<endl;
+#endif
}
void Block::deleteMinOutConstraint() {
out->deleteMin();