summary | shortlog | log | commit | commitdiff | tree
raw | patch | inline | side by side (parent: 107c1b9)
raw | patch | inline | side by side (parent: 107c1b9)
author | Johan Engelen <goejendaagh@zonnet.nl> | |
Tue, 27 Apr 2010 20:01:10 +0000 (22:01 +0200) | ||
committer | Johan Engelen <goejendaagh@zonnet.nl> | |
Tue, 27 Apr 2010 20:01:10 +0000 (22:01 +0200) |
src/sp-use.cpp | patch | blob | history |
diff --git a/src/sp-use.cpp b/src/sp-use.cpp
index 7962390c24304cf214f04cc40d14ce04a55127ae..9cd38e4b3e70b5ebf7e87734a2feb1073a8604c8 100644 (file)
--- 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];
+ }
}
}