Replace matrix translate with object Move

Desktop / LibreOffice - Regina Henschel [t-online.de] - 20 November 2020 09:17 UTC

TR*BaseGeometry is faulty for SdrMeasureObj, fixing these methods is a larger effort and Move is simpler anyway. So I replace the translation using matrices with the Move methods for objects. Backup and restore of the geometry values in state HiddenAsZero is now done with SdrObjGeoData. That is known to work from use in Undo methods.

Change-Id: Ic32e8dbc5ae5f1a2f80e428448abc4b4a530b76b Reviewed-on: https://gerrit.libreoffice.org/c/core/+/106189

bba0cd799848 Replace matrix translate with object Move
sc/qa/unit/data/ods/measurelineHideColSave.ods | Bin 0 -> 9641 bytes
sc/qa/unit/scshapetest.cxx | 74 +++++++++++++++++++++++++
sc/source/filter/xml/xmlexprt.cxx | 28 +++++-----
3 files changed, 87 insertions(+), 15 deletions(-)

Upstream: cgit.freedesktop.org


  • Share