Code

add comment (original update code used exact bbox)
authorjohanengelen <johanengelen@users.sourceforge.net>
Mon, 16 Jun 2008 21:20:20 +0000 (21:20 +0000)
committerjohanengelen <johanengelen@users.sourceforge.net>
Mon, 16 Jun 2008 21:20:20 +0000 (21:20 +0000)
src/display/nr-arena-shape.cpp

index 146d1a5ca87f3072959234c75f78f7e69fc56123..b4a6c82e5b8b4d37e7f21cb28aeeea153cacf7fc 100644 (file)
@@ -251,6 +251,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));
                 item->bbox.x0 = (gint32)(boundingbox[0][0] - 1.0F);
                 item->bbox.y0 = (gint32)(boundingbox[1][0] - 1.0F);
@@ -274,6 +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));
 
         if (shape->_stroke.paint.type() != NRArenaShape::Paint::NONE || outline) {