From: buliabyak Date: Sun, 7 Jan 2007 13:48:06 +0000 (+0000) Subject: when bailing out on update due to missing curve or style, don't forget to update... X-Git-Url: https://git.tokkee.org/?a=commitdiff_plain;h=633da54601a391d5ffb606077a57298ab0d3180c;p=inkscape.git when bailing out on update due to missing curve or style, don't forget to update item->bbox; fixes 1623869 --- diff --git a/src/display/nr-arena-shape.cpp b/src/display/nr-arena-shape.cpp index d3f04a075..d9031824a 100644 --- a/src/display/nr-arena-shape.cpp +++ b/src/display/nr-arena-shape.cpp @@ -326,11 +326,13 @@ nr_arena_shape_update(NRArenaItem *item, NRRectL *area, NRGC *gc, guint state, g shape->stroke_painter = NULL; } - if (!shape->curve || !shape->style) return NR_ARENA_ITEM_STATE_ALL; - if (sp_curve_is_empty(shape->curve)) return NR_ARENA_ITEM_STATE_ALL; - if ( ( shape->_fill.paint.type() == NRArenaShape::Paint::NONE ) && - ( shape->_stroke.paint.type() == NRArenaShape::Paint::NONE && !outline) ) + if (!shape->curve || + !shape->style || + sp_curve_is_empty(shape->curve) || + (( shape->_fill.paint.type() == NRArenaShape::Paint::NONE ) && + ( shape->_stroke.paint.type() == NRArenaShape::Paint::NONE && !outline) )) { + item->bbox = shape->approx_bbox; return NR_ARENA_ITEM_STATE_ALL; }