summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorJohan B. C. Engelen <jbc.engelen@swissonline.ch>2008-06-16 15:34:22 +0000
committerjohanengelen <johanengelen@users.sourceforge.net>2008-06-16 15:34:22 +0000
commitd838082e60a76e7b6af10197a775029b56f1e810 (patch)
tree08b366730c31475e02ee56463c227022c888b872 /src
parentFix nr_arena_shape_add_bboxes to what it was in the past. (the NPE was caused... (diff)
downloadinkscape-d838082e60a76e7b6af10197a775029b56f1e810.tar.gz
inkscape-d838082e60a76e7b6af10197a775029b56f1e810.zip
don't use exact bbox in nr_arena_shape_update (speed-up)
(bzr r5952)
Diffstat (limited to 'src')
-rw-r--r--src/display/nr-arena-shape.cpp4
1 files 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;