summary | shortlog | log | commit | commitdiff | tree
raw | patch | inline | side by side (parent: 57cceb4)
raw | patch | inline | side by side (parent: 57cceb4)
| author | buliabyak <buliabyak@users.sourceforge.net> | |
| Sun, 7 Jan 2007 13:48:06 +0000 (13:48 +0000) | ||
| committer | buliabyak <buliabyak@users.sourceforge.net> | |
| Sun, 7 Jan 2007 13:48:06 +0000 (13:48 +0000) |
| src/display/nr-arena-shape.cpp | patch | blob | history |
index d3f04a07538acb7a62960b06d6147c994b5c2ca3..d9031824a17d5bfa3ac851af5236653bcc773602 100644 (file)
@@ -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;
}