summaryrefslogtreecommitdiffstats
path: root/src/helper/geom.cpp
diff options
context:
space:
mode:
authorAlex Valavanis <valavanisalex@gmail.com>2013-03-26 23:46:08 +0000
committerAlex Valavanis <valavanisalex@gmail.com>2013-03-26 23:46:08 +0000
commitd6b24c1540e9a7f388dd1500c762f73586119280 (patch)
tree09b01572b9201c4bb18880202cf29fa9e420716f /src/helper/geom.cpp
parentFix check for X11 backend with Gtk+ 2 (diff)
downloadinkscape-d6b24c1540e9a7f388dd1500c762f73586119280.tar.gz
inkscape-d6b24c1540e9a7f388dd1500c762f73586119280.zip
Stop using top-level glibmm header
(bzr r12251)
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 3e63df1ac..077344380 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>
using Geom::X;
using Geom::Y;
@@ -275,18 +275,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 */