summaryrefslogtreecommitdiffstats
path: root/src/helper/geom.cpp
diff options
context:
space:
mode:
authorsu_v <suv-sf@users.sourceforge.net>2013-03-29 19:54:30 +0000
committer~suv <suv-sf@users.sourceforge.net>2013-03-29 19:54:30 +0000
commit8b605523195bcad80c4a3134134066e677282640 (patch)
tree7258ae78c0ae7e2ee7519dcecead8b1fc34ca78f /src/helper/geom.cpp
parentmerge from trunk (r12240) (diff)
parentHeader cleanup (diff)
downloadinkscape-8b605523195bcad80c4a3134134066e677282640.tar.gz
inkscape-8b605523195bcad80c4a3134134066e677282640.zip
merge from trunk (r12258)
(bzr r11668.1.65)
Diffstat (limited to 'src/helper/geom.cpp')
-rw-r--r--src/helper/geom.cpp26
1 files changed, 13 insertions, 13 deletions
diff --git a/src/helper/geom.cpp b/src/helper/geom.cpp
index a0a440308..eebc566f2 100644
--- a/src/helper/geom.cpp
+++ b/src/helper/geom.cpp
@@ -9,6 +9,7 @@
* Released under GNU GPL
*/
+#include <algorithm>
#include "helper/geom.h"
#include "helper/geom-curves.h"
#include <typeinfo>
@@ -20,7 +21,6 @@
#include <2geom/rect.h>
#include <2geom/coord.h>
#include <2geom/sbasis-to-bezier.h>
-#include <glibmm.h>
#include <math.h> // for M_PI
using Geom::X;
@@ -276,18 +276,18 @@ geom_cubic_bbox_wind_distance (Geom::Coord x000, Geom::Coord y000,
if (bbox) cubic_bbox (x000, y000, x001, y001, x011, y011, x111, y111, *bbox);
- x0 = MIN (x000, x001);
- x0 = MIN (x0, x011);
- x0 = MIN (x0, x111);
- y0 = MIN (y000, y001);
- y0 = MIN (y0, y011);
- y0 = MIN (y0, y111);
- x1 = MAX (x000, x001);
- x1 = MAX (x1, x011);
- x1 = MAX (x1, x111);
- y1 = MAX (y000, y001);
- y1 = MAX (y1, y011);
- y1 = MAX (y1, y111);
+ x0 = std::min (x000, x001);
+ x0 = std::min (x0, x011);
+ x0 = std::min (x0, x111);
+ 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);
if (best) {
/* Quickly adjust to endpoints */