summaryrefslogtreecommitdiffstats
path: root/src/helper/geom.cpp
diff options
context:
space:
mode:
authorNicolas Dufour <nicoduf@yahoo.fr>2013-04-04 06:55:13 +0000
committerJazzyNico <nicoduf@yahoo.fr>2013-04-04 06:55:13 +0000
commitdc325db99e4e1b17293fac9ecb6de9da00bd30da (patch)
treeae222a1badc39d272dd6e1fcc075cb76b8a23aa8 /src/helper/geom.cpp
parentodf export: code clean up and preparatory work to allow gradients in export. ... (diff)
downloadinkscape-dc325db99e4e1b17293fac9ecb6de9da00bd30da.tar.gz
inkscape-dc325db99e4e1b17293fac9ecb6de9da00bd30da.zip
Fix for Bug #1163759 (Mouse selection ignores transform).
(bzr r12265)
Diffstat (limited to 'src/helper/geom.cpp')
-rw-r--r--src/helper/geom.cpp12
1 files changed, 6 insertions, 6 deletions
diff --git a/src/helper/geom.cpp b/src/helper/geom.cpp
index 077344380..879026521 100644
--- a/src/helper/geom.cpp
+++ b/src/helper/geom.cpp
@@ -281,12 +281,12 @@ geom_cubic_bbox_wind_distance (Geom::Coord x000, Geom::Coord y000,
y0 = std::min (y000, y001);
y0 = std::min (y0, y011);
y0 = std::min (y0, y111);
- x1 = std::min (x000, x001);
- x1 = std::min (x1, x011);
- x1 = std::min (x1, x111);
- y1 = std::min (y000, y001);
- y1 = std::min (y1, y011);
- y1 = std::min (y1, y111);
+ x1 = std::max (x000, x001);
+ x1 = std::max (x1, x011);
+ x1 = std::max (x1, x111);
+ y1 = std::max (y000, y001);
+ y1 = std::max (y1, y011);
+ y1 = std::max (y1, y111);
if (best) {
/* Quickly adjust to endpoints */