summaryrefslogtreecommitdiffstats
path: root/src/sp-item.cpp
diff options
context:
space:
mode:
authorKrzysztof Kosi??ski <tweenk.pl@gmail.com>2011-08-27 16:05:32 +0000
committerKrzysztof Kosinski <tweenk.pl@gmail.com>2011-08-27 16:05:32 +0000
commitd6af1140ee108cc7d7fb6e0ba89ff7e30bb7ad3a (patch)
tree69ea9c65f725d83ae1bc267ea5a0358a1bc1d793 /src/sp-item.cpp
parentRemove all NRRect use. (diff)
downloadinkscape-d6af1140ee108cc7d7fb6e0ba89ff7e30bb7ad3a.tar.gz
inkscape-d6af1140ee108cc7d7fb6e0ba89ff7e30bb7ad3a.zip
Completely remove NRRect, NRRectL, in-svg-plane.h
(bzr r10582.1.6)
Diffstat (limited to 'src/sp-item.cpp')
-rw-r--r--src/sp-item.cpp4
1 files changed, 1 insertions, 3 deletions
diff --git a/src/sp-item.cpp b/src/sp-item.cpp
index a2a603c68..c0c23ba8b 100644
--- a/src/sp-item.cpp
+++ b/src/sp-item.cpp
@@ -25,7 +25,6 @@
# include "config.h"
#endif
-
#include "sp-item.h"
#include "svg/svg.h"
#include "print.h"
@@ -60,7 +59,6 @@
#include "sp-title.h"
#include "sp-desc.h"
-#include "libnr/nr-convert2geom.h"
#include "util/find-last-if.h"
#include "util/reverse-list.h"
#include <2geom/rect.h>
@@ -1302,7 +1300,7 @@ gint SPItem::emitEvent(SPEvent &event)
*/
void SPItem::set_item_transform(Geom::Affine const &transform_matrix)
{
- if (!matrix_equalp(transform_matrix, transform, NR_EPSILON)) {
+ if (!Geom::are_near(transform_matrix, transform, 1e-18)) {
transform = transform_matrix;
/* The SP_OBJECT_USER_MODIFIED_FLAG_B is used to mark the fact that it's only a
transformation. It's apparently not used anywhere else. */