summaryrefslogtreecommitdiffstats
path: root/src/sp-use.cpp
diff options
context:
space:
mode:
authorJohan B. C. Engelen <jbc.engelen@swissonline.ch>2010-04-27 20:01:10 +0000
committerJohan Engelen <goejendaagh@zonnet.nl>2010-04-27 20:01:10 +0000
commit11909056ffd64934723ed775f8d4a959df0e96b1 (patch)
treedb8ec1e699a4114ef7a51a4da1548729191d7032 /src/sp-use.cpp
parentinkscape-comboboxentry-action: (diff)
downloadinkscape-11909056ffd64934723ed775f8d4a959df0e96b1.tar.gz
inkscape-11909056ffd64934723ed775f8d4a959df0e96b1.zip
Fix wrong bbox upon selecting clones of horizontal/vertical lines (related to bug #318726)
Fixed bugs: - https://launchpad.net/bugs/318726 (bzr r9385)
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];
+ }
}
}