diff options
Diffstat (limited to 'drawinglayer/source/tools/emfphelperdata.cxx')
-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); |