summaryrefslogtreecommitdiff
path: root/svx
diff options
context:
space:
mode:
authorMark Hung <marklh9@gmail.com>2017-12-15 22:21:27 +0800
committerMark Hung <marklh9@gmail.com>2017-12-31 08:33:46 +0100
commit4173798ef73d3fc7da8c5b8fa575a36f05cd6f83 (patch)
tree285968c7da8487d7ff2509c667ba45af61c57873 /svx
parent66b8ed9709210fdf72934cc914cf9be054df41ad (diff)
tdf#51188: allow connector gluepoint undo
It should had overwritten the connector data when the connector attach to a different glue point of the same object. Let’s always overwrite it, though it waste a little bit time. Change-Id: Ib4cc4bf105e5ef17289e027dcddd0110f7297190 Reviewed-on: https://gerrit.libreoffice.org/46559 Tested-by: Jenkins <ci@libreoffice.org> Reviewed-by: Mark Hung <marklh9@gmail.com>
Diffstat (limited to 'svx')
-rw-r--r--svx/source/svdraw/svdoedge.cxx6
1 files changed, 6 insertions, 0 deletions
diff --git a/svx/source/svdraw/svdoedge.cxx b/svx/source/svdraw/svdoedge.cxx
index 02ef84946b31..150fbc2b8811 100644
--- a/svx/source/svdraw/svdoedge.cxx
+++ b/svx/source/svdraw/svdoedge.cxx
@@ -2449,11 +2449,17 @@ void SdrEdgeObj::RestGeoData(const SdrObjGeoData& rGeo)
aCon1=rEGeo.aCon1;
if (aCon1.pObj!=nullptr) aCon1.pObj->AddListener(*this);
}
+ else
+ aCon1=rEGeo.aCon1;
+
if (aCon2.pObj!=rEGeo.aCon2.pObj) {
if (aCon2.pObj!=nullptr) aCon2.pObj->RemoveListener(*this);
aCon2=rEGeo.aCon2;
if (aCon2.pObj!=nullptr) aCon2.pObj->AddListener(*this);
}
+ else
+ aCon2=rEGeo.aCon2;
+
*pEdgeTrack =*rEGeo.pEdgeTrack;
bEdgeTrackDirty=rEGeo.bEdgeTrackDirty;
bEdgeTrackUserDefined=rEGeo.bEdgeTrackUserDefined;