diff options
-rw-r--r-- | svx/source/svdraw/svdotextdecomposition.cxx | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/svx/source/svdraw/svdotextdecomposition.cxx b/svx/source/svdraw/svdotextdecomposition.cxx index 726ee850eb8b..5d7c51208154 100644 --- a/svx/source/svdraw/svdotextdecomposition.cxx +++ b/svx/source/svdraw/svdotextdecomposition.cxx @@ -427,12 +427,14 @@ namespace // full portion width const double fTextWidth(aDXArray[aDXArray.size() - 1]); + fStart = fTextWidth - fStart; + fEnd = fTextWidth - fEnd; + // tdf#151968 // if start < end, OutputDevice::DrawWaveLine() will // think it is a rotated line, so we swap fStart and // fEnd to avoid this. - fStart = fTextWidth - fEnd; - fEnd = fTextWidth - fStart; + std::swap(fStart, fEnd); } // need to take FontScaling out of values; it's already part of |