summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorArcadie M. Cracan <acracan@gmail.com>2010-12-29 15:05:55 +0000
committerArcadie M. Cracan <acracan@gmail.com>2010-12-29 15:05:55 +0000
commitb8e85b0807cad755cf69557b8d28c4f7c4bd47b8 (patch)
tree542b053829b8e52b9840b3aa31303b63135789b7 /src
parentInitialize pointer. (diff)
downloadinkscape-b8e85b0807cad755cf69557b8d28c4f7c4bd47b8.tar.gz
inkscape-b8e85b0807cad755cf69557b8d28c4f7c4bd47b8.zip
Fix bug #552289 - Ungrouping objects changes position of arrow lines. This was due to incorrect initialization of unattached connector endpoints that was part of a group.
Fixed bugs: - https://launchpad.net/bugs/552289 (bzr r9988)
Diffstat (limited to 'src')
-rw-r--r--src/sp-conn-end-pair.cpp5
1 files changed, 3 insertions, 2 deletions
diff --git a/src/sp-conn-end-pair.cpp b/src/sp-conn-end-pair.cpp
index 0a5a6d7bd..5bce1a4f8 100644
--- a/src/sp-conn-end-pair.cpp
+++ b/src/sp-conn-end-pair.cpp
@@ -217,6 +217,7 @@ SPConnEndPair::getEndpoints(Geom::Point endPts[]) const {
SPCurve *curve = _path->original_curve ? _path->original_curve : _path->curve;
SPItem *h2attItem[2];
getAttachedItems(h2attItem);
+ Geom::Matrix i2d = SP_ITEM(_path)->i2doc_affine();
for (unsigned h = 0; h < 2; ++h) {
if ( h2attItem[h] ) {
@@ -226,10 +227,10 @@ SPConnEndPair::getEndpoints(Geom::Point endPts[]) const {
else
{
if (h == 0) {
- endPts[h] = *(curve->first_point());
+ endPts[h] = *(curve->first_point())*i2d;
}
else {
- endPts[h] = *(curve->last_point());
+ endPts[h] = *(curve->last_point())*i2d;
}
}
}