From 8e867961dfc221568661c695aeddc10552f0accb Mon Sep 17 00:00:00 2001 From: Krzysztof Kosi??ski Date: Sun, 4 Sep 2011 23:17:50 +0200 Subject: Fix crashes with empty text objects (bzr r10617) --- src/sp-flowtext.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/sp-flowtext.cpp') diff --git a/src/sp-flowtext.cpp b/src/sp-flowtext.cpp index bd73a65c9..e7dcc559f 100644 --- a/src/sp-flowtext.cpp +++ b/src/sp-flowtext.cpp @@ -335,7 +335,7 @@ sp_flowtext_bbox(SPItem const *item, Geom::Affine const &transform, SPItem::BBox // Add stroke width // FIXME this code is incorrect - if (type == SPItem::VISUAL_BBOX && !item->style->stroke.isNone()) { + if (bbox && type == SPItem::VISUAL_BBOX && !item->style->stroke.isNone()) { double scale = transform.descrim(); bbox->expandBy(0.5 * item->style->stroke_width.computed * scale); } -- cgit v1.2.3