summaryrefslogtreecommitdiffstats
path: root/src/ui/dialog/align-and-distribute.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/ui/dialog/align-and-distribute.cpp')
-rw-r--r--src/ui/dialog/align-and-distribute.cpp6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/ui/dialog/align-and-distribute.cpp b/src/ui/dialog/align-and-distribute.cpp
index a2169c0b3..f7cb06263 100644
--- a/src/ui/dialog/align-and-distribute.cpp
+++ b/src/ui/dialog/align-and-distribute.cpp
@@ -20,8 +20,8 @@
# include <config.h>
#endif
+#include <2geom/transforms.h>
#include "ui/widget/spinbutton.h"
-
#include "desktop-handles.h"
#include "unclump.h"
#include "document.h"
@@ -357,7 +357,7 @@ private :
it < sorted.end();
it ++ )
{
- if (!NR_DF_TEST_CLOSE (pos, it->bbox.min()[_orientation], 1e-6)) {
+ if (!Geom::are_near(pos, it->bbox.min()[_orientation], 1e-6)) {
Geom::Point t(0.0, 0.0);
t[_orientation] = pos - it->bbox.min()[_orientation];
sp_item_move_rel(it->item, Geom::Translate(t));
@@ -380,7 +380,7 @@ private :
//new anchor position
float pos = sorted.front().anchor + i * step;
//Don't move if we are really close
- if (!NR_DF_TEST_CLOSE (pos, it.anchor, 1e-6)) {
+ if (!Geom::are_near(pos, it.anchor, 1e-6)) {
//Compute translation
Geom::Point t(0.0, 0.0);
t[_orientation] = pos - it.anchor;