diff options
| author | Krzysztof Kosi??ski <tweenk.pl@gmail.com> | 2011-08-27 16:05:32 +0000 |
|---|---|---|
| committer | Krzysztof Kosinski <tweenk.pl@gmail.com> | 2011-08-27 16:05:32 +0000 |
| commit | d6af1140ee108cc7d7fb6e0ba89ff7e30bb7ad3a (patch) | |
| tree | 69ea9c65f725d83ae1bc267ea5a0358a1bc1d793 /src/display/drawing-item.cpp | |
| parent | Remove all NRRect use. (diff) | |
| download | inkscape-d6af1140ee108cc7d7fb6e0ba89ff7e30bb7ad3a.tar.gz inkscape-d6af1140ee108cc7d7fb6e0ba89ff7e30bb7ad3a.zip | |
Completely remove NRRect, NRRectL, in-svg-plane.h
(bzr r10582.1.6)
Diffstat (limited to 'src/display/drawing-item.cpp')
| -rw-r--r-- | src/display/drawing-item.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/display/drawing-item.cpp b/src/display/drawing-item.cpp index a5496e999..3fe56b6de 100644 --- a/src/display/drawing-item.cpp +++ b/src/display/drawing-item.cpp @@ -176,7 +176,7 @@ DrawingItem::setTransform(Geom::Affine const &new_trans) current = *_transform; } - if (!Geom::are_near(current, new_trans, NR_EPSILON)) { + if (!Geom::are_near(current, new_trans, 1e-18)) { // mark the area where the object was for redraw. _markForRendering(); if (new_trans.isIdentity()) { @@ -456,7 +456,7 @@ DrawingItem::render(DrawingContext &ct, Geom::IntRect const &area, unsigned flag // If we are invisible, return immediately if (!_visible) return RENDER_OK; - if (_ctm.isSingular(NR_EPSILON)) return RENDER_OK; + if (_ctm.isSingular(1e-18)) return RENDER_OK; // TODO convert outline rendering to a separate virtual function if (outline) { |
