diff options
author | Bartosz Kosiorek <bartosz.kosiorek@tomtom.com> | 2018-11-27 01:54:28 +0100 |
---|---|---|
committer | Bartosz Kosiorek <gang65@poczta.onet.pl> | 2018-11-27 11:34:57 +0100 |
commit | f54c76e1ef8aa1e076ebbc0dbb356e87463557ed (patch) | |
tree | 86953c8a5a770e897d33a54109cfbd7b9e984849 | |
parent | d464d505fbf6e53a38afdd3661d320fac8c760d6 (diff) |
tdf#121648 EMF+ Fix displaying DrawDriverString record
With introduing String rotation support
I made mistake by not removing Maping from DX-Array.
With this commit I'm fixing that issue.
Now drawing with DrawDriverString record,
and rotation is working perfectly.
Change-Id: I7ae051b3791d9d2d8e2143ed33d21b7bfbc551c6
Reviewed-on: https://gerrit.libreoffice.org/64079
Tested-by: Jenkins
Reviewed-by: Patrick Jaap <patrick.jaap@tu-dresden.de>
Reviewed-by: Bartosz Kosiorek <gang65@poczta.onet.pl>
-rw-r--r-- | drawinglayer/source/tools/emfphelperdata.cxx | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/drawinglayer/source/tools/emfphelperdata.cxx b/drawinglayer/source/tools/emfphelperdata.cxx index d75db28a1902..4714ffeb275f 100644 --- a/drawinglayer/source/tools/emfphelperdata.cxx +++ b/drawinglayer/source/tools/emfphelperdata.cxx @@ -1798,10 +1798,9 @@ namespace emfplushelper // generate the DX-Array aDXArray.clear(); - double mappedPosX = Map(charsPosX[pos], charsPosY[pos]).getX(); - for (size_t i = 0; i < aLength-1; i++) + for (size_t i = 0; i < aLength - 1; i++) { - aDXArray.push_back(Map(charsPosX[pos + i + 1], charsPosY[pos + i + 1]).getX() - mappedPosX); + aDXArray.push_back(charsPosX[pos + i + 1] - charsPosX[pos]); } // last entry aDXArray.push_back(0); |