summaryrefslogtreecommitdiffstats
path: root/src/sp-use.cpp
diff options
context:
space:
mode:
authorTed Gould <ted@gould.cx>2010-05-15 19:05:39 +0000
committerTed Gould <ted@gould.cx>2010-05-15 19:05:39 +0000
commit672afd6dd148c167ce8f5df23e35d15f888b9473 (patch)
tree0d47f7e475daad3eedd7d89fbc5d183598044782 /src/sp-use.cpp
parentMaking an enable/disable flag for building with dbus (diff)
parentFix tooltip error in the preferences (Bug #446723). (diff)
downloadinkscape-672afd6dd148c167ce8f5df23e35d15f888b9473.tar.gz
inkscape-672afd6dd148c167ce8f5df23e35d15f888b9473.zip
Pulling in a more recent trunk
(bzr r8254.1.56)
Diffstat (limited to 'src/sp-use.cpp')
-rw-r--r--src/sp-use.cpp9
1 files changed, 8 insertions, 1 deletions
diff --git a/src/sp-use.cpp b/src/sp-use.cpp
index 7962390c2..9cd38e4b3 100644
--- a/src/sp-use.cpp
+++ b/src/sp-use.cpp
@@ -288,7 +288,14 @@ sp_use_bbox(SPItem const *item, NRRect *bbox, Geom::Matrix const &transform, uns
* Geom::Translate(use->x.computed,
use->y.computed)
* transform );
- sp_item_invoke_bbox_full(child, bbox, ct, flags, FALSE);
+ Geom::OptRect optbbox;
+ sp_item_invoke_bbox_full(child, optbbox, ct, flags, FALSE);
+ if (optbbox) {
+ bbox->x0 = (*optbbox)[0][0];
+ bbox->y0 = (*optbbox)[1][0];
+ bbox->x1 = (*optbbox)[0][1];
+ bbox->y1 = (*optbbox)[1][1];
+ }
}
}