Code

Fix a bug where the spacing control for connectors reduced the size of
authormjwybrow <mjwybrow@users.sourceforge.net>
Fri, 12 Jun 2009 08:01:34 +0000 (08:01 +0000)
committermjwybrow <mjwybrow@users.sourceforge.net>
Fri, 12 Jun 2009 08:01:34 +0000 (08:01 +0000)
obstacle's bounding boxes, rather than expanding them.  This is a result of
a previous change that fixed libavoid's winding order to match Inkscape's.

src/conn-avoid-ref.cpp

index 4eb85086e9382dcccbcc2d5902e03036fe146a53..43c9c0b66cb652c5fa906f50d7d1f5e1c5ca20b2 100644 (file)
@@ -199,7 +199,7 @@ static Avoid::Polygn avoid_item_poly(SPItem const *item)
 
     // Add a little buffer around the edge of each object.
     Geom::Rect rExpandedHull = *rHull;
-    rExpandedHull.expandBy(-spacing); 
+    rExpandedHull.expandBy(spacing); 
     poly = Avoid::newPoly(4);
 
     for (unsigned n = 0; n < 4; ++n) {