From: tgdwyer Date: Mon, 6 Feb 2006 01:41:48 +0000 (+0000) Subject: Stupid bug in generate-constraints events comparison test fixed X-Git-Url: https://git.tokkee.org/?a=commitdiff_plain;h=fad6f10261e2a500fcd5d7d9ede33134b39de968;p=inkscape.git Stupid bug in generate-constraints events comparison test fixed --- diff --git a/src/removeoverlap/generate-constraints.cpp b/src/removeoverlap/generate-constraints.cpp index efa477449..a8bfe28e7 100644 --- a/src/removeoverlap/generate-constraints.cpp +++ b/src/removeoverlap/generate-constraints.cpp @@ -140,7 +140,7 @@ Event **events; 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 34cedf481..9f98d5811 100755 --- a/src/removeoverlap/remove_rectangle_overlap.cpp +++ b/src/removeoverlap/remove_rectangle_overlap.cpp @@ -6,7 +6,7 @@ #include "constraint.h" #ifdef RECTANGLE_OVERLAP_LOGGING #include -#include +#include "blocks.h" using std::ios; using std::ofstream; using std::endl;