From 0623102c16ecbf5ade1a7ef195659826a6f92548 Mon Sep 17 00:00:00 2001 From: Tim Dwyer Date: Wed, 10 May 2006 07:13:45 +0000 Subject: Apparently a problem was reported with one of the test cases. I can't reproduce the problem, however solve_VPSC code in inkscape was getting quite out of date with that in www.sf.net/projects/adaptagrams. I've updated the code, which may fix the problem, or at least if it's reported again then I'll know it's still an issue. (bzr r803) --- src/removeoverlap/removeoverlap.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'src/removeoverlap/removeoverlap.cpp') diff --git a/src/removeoverlap/removeoverlap.cpp b/src/removeoverlap/removeoverlap.cpp index 9d7beb45f..d79fa9eab 100644 --- a/src/removeoverlap/removeoverlap.cpp +++ b/src/removeoverlap/removeoverlap.cpp @@ -7,7 +7,7 @@ * * Copyright (C) 2005 Authors * -* Released under GNU GPL. Read the file 'COPYING' for more information. +* Released under GNU LGPL. Read the file 'COPYING' for more information. */ #include "util/glib-list-iterators.h" #include "sp-item.h" @@ -29,7 +29,7 @@ void removeoverlap(GSList const *const items, double const xGap, double const yG std::list selected; selected.insert >(selected.end(), items, NULL); if (selected.empty()) return; - int n=selected.size(); + unsigned n=selected.size(); //Check 2 or more selected objects if (n < 2) return; @@ -62,7 +62,7 @@ void removeoverlap(GSList const *const items, double const xGap, double const yG rs[i++] = new Rectangle(min[X], max[X], min[Y], max[Y]); } - removeRectangleOverlap(rs, n, 0.0, 0.0); + removeRectangleOverlap(n, rs, 0.0, 0.0); i=0; for (std::list::iterator it(selected.begin()); it != selected.end(); -- cgit v1.2.3