summary | shortlog | log | commit | commitdiff | tree
raw | patch | inline | side by side (parent: cd477aa)
raw | patch | inline | side by side (parent: cd477aa)
author | tgdwyer <tgdwyer@users.sourceforge.net> | |
Mon, 6 Feb 2006 01:41:48 +0000 (01:41 +0000) | ||
committer | tgdwyer <tgdwyer@users.sourceforge.net> | |
Mon, 6 Feb 2006 01:41:48 +0000 (01:41 +0000) |
src/removeoverlap/generate-constraints.cpp | patch | blob | history | |
src/removeoverlap/remove_rectangle_overlap.cpp | patch | blob | history |
diff --git a/src/removeoverlap/generate-constraints.cpp b/src/removeoverlap/generate-constraints.cpp
index efa4774499310d40ed752c09542611e7c021e661..a8bfe28e7eaa20ef6ce8b462a9587bdf91aa7067 100644 (file)
int compare_events(const void *a, const void *b) {
Event *ea=*(Event**)a;
Event *eb=*(Event**)b;
- if(ea->v->r==ea->v->r) {
+ if(ea->v->r==eb->v->r) {
// when comparing opening and closing from the same rect
// open must come first
if(ea->type==Open) return -1;
diff --git a/src/removeoverlap/remove_rectangle_overlap.cpp b/src/removeoverlap/remove_rectangle_overlap.cpp
index 34cedf48163ad2849fde0c4442e40dd510cd8934..9f98d5811cf98c63edf41eac0aee00fcf1ebf8c5 100755 (executable)
#include "constraint.h"
#ifdef RECTANGLE_OVERLAP_LOGGING
#include <fstream>
-#include <blocks.h>
+#include "blocks.h"
using std::ios;
using std::ofstream;
using std::endl;