summaryrefslogtreecommitdiffstats
path: root/src/sp-clippath.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/sp-clippath.cpp')
-rw-r--r--src/sp-clippath.cpp9
1 files changed, 4 insertions, 5 deletions
diff --git a/src/sp-clippath.cpp b/src/sp-clippath.cpp
index 89e140f12..147ece167 100644
--- a/src/sp-clippath.cpp
+++ b/src/sp-clippath.cpp
@@ -25,7 +25,6 @@
#include "document-private.h"
#include "sp-item.h"
-#include "libnr/nr-matrix-ops.h"
#include <2geom/transforms.h>
#include "sp-clippath.h"
@@ -286,10 +285,10 @@ void SPClipPath::setBBox(unsigned int key, NRRect *bbox)
{
for (SPClipPathView *v = display; v != NULL; v = v->next) {
if (v->key == key) {
- if (!NR_DF_TEST_CLOSE(v->bbox.x0, bbox->x0, NR_EPSILON) ||
- !NR_DF_TEST_CLOSE(v->bbox.y0, bbox->y0, NR_EPSILON) ||
- !NR_DF_TEST_CLOSE(v->bbox.x1, bbox->x1, NR_EPSILON) ||
- !NR_DF_TEST_CLOSE(v->bbox.y1, bbox->y1, NR_EPSILON)) {
+ if (!Geom::are_near(v->bbox.x0, bbox->x0) ||
+ !Geom::are_near(v->bbox.y0, bbox->y0) ||
+ !Geom::are_near(v->bbox.x1, bbox->x1) ||
+ !Geom::are_near(v->bbox.y1, bbox->y1)) {
v->bbox = *bbox;
}
break;