summaryrefslogtreecommitdiffstats
path: root/src/sp-tspan.cpp
diff options
context:
space:
mode:
authorKrzysztof Kosi??ski <tweenk.pl@gmail.com>2010-08-04 23:56:47 +0000
committerKrzysztof KosiƄski <tweenk.pl@gmail.com>2010-08-04 23:56:47 +0000
commit498629f82d9453cb7222ab642b867c183fdf1666 (patch)
tree33bb4b8bffc1f67c2167d393e928aee743fdce9d /src/sp-tspan.cpp
parentFix artifacts in Gaussian blur and other filters inadvertently (diff)
downloadinkscape-498629f82d9453cb7222ab642b867c183fdf1666.tar.gz
inkscape-498629f82d9453cb7222ab642b867c183fdf1666.zip
Wholesale cruft removal part 3
(bzr r9508.1.47)
Diffstat (limited to 'src/sp-tspan.cpp')
-rw-r--r--src/sp-tspan.cpp7
1 files changed, 4 insertions, 3 deletions
diff --git a/src/sp-tspan.cpp b/src/sp-tspan.cpp
index cf1990900..463a64aee 100644
--- a/src/sp-tspan.cpp
+++ b/src/sp-tspan.cpp
@@ -576,9 +576,10 @@ sp_textpath_to_text(SPObject *tp)
{
SPObject *text = SP_OBJECT_PARENT(tp);
- NRRect bbox;
- sp_item_invoke_bbox(SP_ITEM(text), &bbox, sp_item_i2doc_affine(SP_ITEM(text)), TRUE);
- Geom::Point xy(bbox.x0, bbox.y0);
+ Geom::OptRect bbox;
+ sp_item_invoke_bbox(SP_ITEM(text), bbox, sp_item_i2doc_affine(SP_ITEM(text)), TRUE);
+ if (!bbox) return;
+ Geom::Point xy = bbox->min();
// make a list of textpath children
GSList *tp_reprs = NULL;