summary | shortlog | log | commit | commitdiff | tree
raw | patch | inline | side by side (parent: 2ab144d)
raw | patch | inline | side by side (parent: 2ab144d)
author | johanengelen <johanengelen@users.sourceforge.net> | |
Mon, 23 Jun 2008 22:24:10 +0000 (22:24 +0000) | ||
committer | johanengelen <johanengelen@users.sourceforge.net> | |
Mon, 23 Jun 2008 22:24:10 +0000 (22:24 +0000) |
src/display/nr-arena-shape.cpp | patch | blob | history |
index 39bfe1e261480320b6bb74158c08bbb4f63ff01d..dd44fa5a501ad17d7c665bc0b4b5d75041e7a353 100644 (file)
@@ -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;