diff options
| author | bulia byak <buliabyak@gmail.com> | 2007-01-07 13:48:06 +0000 |
|---|---|---|
| committer | buliabyak <buliabyak@users.sourceforge.net> | 2007-01-07 13:48:06 +0000 |
| commit | a50d33b991f20dd223024feba2e6b6b24209031a (patch) | |
| tree | 9cbc9267d8081df5ce1f0db82e633717e197ced5 /src | |
| parent | Using translator-credits (diff) | |
| download | inkscape-a50d33b991f20dd223024feba2e6b6b24209031a.tar.gz inkscape-a50d33b991f20dd223024feba2e6b6b24209031a.zip | |
when bailing out on update due to missing curve or style, don't forget to update item->bbox; fixes 1623869
(bzr r2143)
Diffstat (limited to 'src')
| -rw-r--r-- | src/display/nr-arena-shape.cpp | 10 |
1 files changed, 6 insertions, 4 deletions
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; } |
