diff options
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; } |
