diff options
| author | Jasper van de Gronde <jasper.vandegronde@gmail.com> | 2010-04-18 14:17:05 +0000 |
|---|---|---|
| committer | Jasper van de Gronde <jasper.vandegronde@gmail.com> | 2010-04-18 14:17:05 +0000 |
| commit | 754b97f48cd23a2a178a121917a3e58a609fc3c2 (patch) | |
| tree | a4ce2145606a599b0a31d845752867f892f57df5 /src/display/nr-arena-glyphs.cpp | |
| parent | Correct #endif placement. Should fix win32 build. (diff) | |
| download | inkscape-754b97f48cd23a2a178a121917a3e58a609fc3c2.tar.gz inkscape-754b97f48cd23a2a178a121917a3e58a609fc3c2.zip | |
Fix for bug #455302 and bug #165529, also partially fixes bounding box of various NR Arena Items as passed to filters (it used to explicitly make the bounding box larger) and makes nr-filter-displacement-map use rowstride
(bzr r9350)
Diffstat (limited to 'src/display/nr-arena-glyphs.cpp')
| -rw-r--r-- | src/display/nr-arena-glyphs.cpp | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/src/display/nr-arena-glyphs.cpp b/src/display/nr-arena-glyphs.cpp index ff320bd81..33b08a91c 100644 --- a/src/display/nr-arena-glyphs.cpp +++ b/src/display/nr-arena-glyphs.cpp @@ -211,10 +211,10 @@ nr_arena_glyphs_update(NRArenaItem *item, NRRectL */*area*/, NRGC *gc, guint /*s } if (nr_rect_d_test_empty(bbox)) return NR_ARENA_ITEM_STATE_ALL; - item->bbox.x0 = (gint32)(bbox.x0 - 1.0); - item->bbox.y0 = (gint32)(bbox.y0 - 1.0); - item->bbox.x1 = (gint32)(bbox.x1 + 1.0); - item->bbox.y1 = (gint32)(bbox.y1 + 1.0); + item->bbox.x0 = static_cast<NR::ICoord>(floor(bbox.x0)); + item->bbox.y0 = static_cast<NR::ICoord>(floor(bbox.y0)); + item->bbox.x1 = static_cast<NR::ICoord>(ceil (bbox.x1)); + item->bbox.y1 = static_cast<NR::ICoord>(ceil (bbox.y1)); return NR_ARENA_ITEM_STATE_ALL; } |
