diff options
| author | Johan B. C. Engelen <jbc.engelen@swissonline.ch> | 2008-06-23 22:24:10 +0000 |
|---|---|---|
| committer | johanengelen <johanengelen@users.sourceforge.net> | 2008-06-23 22:24:10 +0000 |
| commit | ef0d476595eb6ddae37a4d77e03990aff91b20a6 (patch) | |
| tree | 6a54938efb60c56a9fd90ef45e56b81ecfcc701d /src | |
| parent | add comment (diff) | |
| download | inkscape-ef0d476595eb6ddae37a4d77e03990aff91b20a6.tar.gz inkscape-ef0d476595eb6ddae37a4d77e03990aff91b20a6.zip | |
use exact bbox again in updating shapes
(bzr r6034)
Diffstat (limited to 'src')
| -rw-r--r-- | src/display/nr-arena-shape.cpp | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/src/display/nr-arena-shape.cpp b/src/display/nr-arena-shape.cpp index 39bfe1e26..dd44fa5a5 100644 --- a/src/display/nr-arena-shape.cpp +++ b/src/display/nr-arena-shape.cpp @@ -252,8 +252,7 @@ nr_arena_shape_update(NRArenaItem *item, NRRectL *area, NRGC *gc, guint state, g shape->ctm = gc->transform; if (state & NR_ARENA_ITEM_STATE_BBOX) { if (shape->curve) { - // note: the original code before 2geom used to calculate the exact bounding box, for speed we take the approx bbox here - boundingbox = bounds_fast_transformed(shape->curve->get_pathvector(), to_2geom(gc->transform)); + boundingbox = bounds_exact_transformed(shape->curve->get_pathvector(), to_2geom(gc->transform)); item->bbox.x0 = (gint32)(boundingbox[0][0] - 1.0F); item->bbox.y0 = (gint32)(boundingbox[1][0] - 1.0F); item->bbox.x1 = (gint32)(boundingbox[0][1] + 1.9999F); @@ -276,8 +275,7 @@ nr_arena_shape_update(NRArenaItem *item, NRRectL *area, NRGC *gc, guint state, g bool outline = (NR_ARENA_ITEM(shape)->arena->rendermode == Inkscape::RENDERMODE_OUTLINE); if (shape->curve) { - // note: the original code before 2geom used to calculate the exact bounding box, for speed we take the approx bbox here - boundingbox = bounds_fast_transformed(shape->curve->get_pathvector(), to_2geom(gc->transform)); + boundingbox = bounds_exact_transformed(shape->curve->get_pathvector(), to_2geom(gc->transform)); if (shape->_stroke.paint.type() != NRArenaShape::Paint::NONE || outline) { float width, scale; |
