summaryrefslogtreecommitdiffstats
path: root/src/sp-flowtext.cpp
diff options
context:
space:
mode:
authorJohan B. C. Engelen <jbc.engelen@swissonline.ch>2007-11-16 19:01:44 +0000
committerjohanengelen <johanengelen@users.sourceforge.net>2007-11-16 19:01:44 +0000
commite197b5955e383543e19afd38efb8320b67edcefc (patch)
tree6edd9bd541eeb0df43a9f86b077f5653fb52788a /src/sp-flowtext.cpp
parentFix: [ 1829427 ] PNG export via cmd line is restricted to 65535x65535 (diff)
downloadinkscape-e197b5955e383543e19afd38efb8320b67edcefc.tar.gz
inkscape-e197b5955e383543e19afd38efb8320b67edcefc.zip
fix warnings and delete gradient pixmap that will not be used
(bzr r4092)
Diffstat (limited to 'src/sp-flowtext.cpp')
-rw-r--r--src/sp-flowtext.cpp7
1 files changed, 6 insertions, 1 deletions
diff --git a/src/sp-flowtext.cpp b/src/sp-flowtext.cpp
index 87e3246f9..01df68b99 100644
--- a/src/sp-flowtext.cpp
+++ b/src/sp-flowtext.cpp
@@ -351,7 +351,12 @@ sp_flowtext_print(SPItem *item, SPPrintContext *ctx)
NRRect pbox;
sp_item_invoke_bbox(item, &pbox, NR::identity(), TRUE);
NRRect bbox;
- sp_item_bbox_desktop(item, &bbox);
+ NR::Maybe<NR::Rect> bbox_maybe = sp_item_bbox_desktop(item);
+ if (!bbox_maybe) {
+ return;
+ }
+ bbox = NRRect(*bbox_maybe);
+
NRRect dbox;
dbox.x0 = 0.0;
dbox.y0 = 0.0;