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-tref.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-tref.cpp')
| -rw-r--r-- | src/sp-tref.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/sp-tref.cpp b/src/sp-tref.cpp index ac20ce098..833743d24 100644 --- a/src/sp-tref.cpp +++ b/src/sp-tref.cpp @@ -336,7 +336,7 @@ sp_tref_bbox(SPItem const *item, Geom::Affine const &transform, SPItem::BBoxType // 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); } |
