From 4a4922b854d411a872193c60d112424e26da9809 Mon Sep 17 00:00:00 2001 From: johanengelen Date: Mon, 16 Jun 2008 15:34:22 +0000 Subject: [PATCH] don't use exact bbox in nr_arena_shape_update (speed-up) --- src/display/nr-arena-shape.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/display/nr-arena-shape.cpp b/src/display/nr-arena-shape.cpp index 4d03f879f..de5b9c770 100644 --- a/src/display/nr-arena-shape.cpp +++ b/src/display/nr-arena-shape.cpp @@ -252,7 +252,7 @@ nr_arena_shape_update(NRArenaItem *item, NRRectL *area, NRGC *gc, guint state, g if (state & NR_ARENA_ITEM_STATE_BBOX) { if (shape->curve) { Geom::PathVector pv = shape->curve->get_pathvector() * to_2geom(gc->transform); - boundingbox = bounds_exact(pv); + boundingbox = Geom::bounds_fast(pv); 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,7 +276,7 @@ nr_arena_shape_update(NRArenaItem *item, NRRectL *area, NRGC *gc, guint state, g if (shape->curve) { Geom::PathVector pv = shape->curve->get_pathvector() * to_2geom(gc->transform); - boundingbox = bounds_exact(pv); + boundingbox = Geom::bounds_fast(pv); if (shape->_stroke.paint.type() != NRArenaShape::Paint::NONE || outline) { float width, scale; -- 2.30.2