diff options
| author | Krzysztof Kosi??ski <tweenk.pl@gmail.com> | 2011-09-04 21:17:50 +0000 |
|---|---|---|
| committer | Krzysztof KosiĆski <tweenk.pl@gmail.com> | 2011-09-04 21:17:50 +0000 |
| commit | 8e867961dfc221568661c695aeddc10552f0accb (patch) | |
| tree | 182b990bfc2075f58a5d0ee8340e63824cb1d863 /src/sp-flowtext.cpp | |
| parent | Extensions. Pattern along Path. Warn if width of pattern is zero (Bug 486920) (diff) | |
| download | inkscape-8e867961dfc221568661c695aeddc10552f0accb.tar.gz inkscape-8e867961dfc221568661c695aeddc10552f0accb.zip | |
Fix crashes with empty text objects
(bzr r10617)
Diffstat (limited to 'src/sp-flowtext.cpp')
| -rw-r--r-- | src/sp-flowtext.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
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); } |
