summaryrefslogtreecommitdiff
path: root/oox
diff options
context:
space:
mode:
authorStephan Bergmann <sbergman@redhat.com>2022-07-21 13:34:48 +0200
committerStephan Bergmann <sbergman@redhat.com>2022-07-21 14:52:54 +0200
commitf570de5df5a51a593e5fe361bbd79fa5cd6d8173 (patch)
tree8eafe12668559ecae4f271ebc69727a7387d9c32 /oox
parent4d42b6fa4e69fed38f069bdc8b24e793ba82626a (diff)
One more -Werror,-Wunused-result
...similar to cf69bb4f503eb8b3966d5caf825e0c05264a369e "-Werror,-Wunused-result", after c6965c5bcc95430c2a2d01051791d23f2c2f5a5b "tdf#145528 add round1Rect to SmartArt text area corrections" Change-Id: I59292c7e4aae07be2ea46ae5c3db9629fa129a58 Reviewed-on: https://gerrit.libreoffice.org/c/core/+/137295 Tested-by: Jenkins Reviewed-by: Stephan Bergmann <sbergman@redhat.com>
Diffstat (limited to 'oox')
-rw-r--r--oox/source/drawingml/transform2dcontext.cxx2
1 files changed, 1 insertions, 1 deletions
diff --git a/oox/source/drawingml/transform2dcontext.cxx b/oox/source/drawingml/transform2dcontext.cxx
index ade77ad0e4fa..4c98db7592b5 100644
--- a/oox/source/drawingml/transform2dcontext.cxx
+++ b/oox/source/drawingml/transform2dcontext.cxx
@@ -207,7 +207,7 @@ bool ConstructPresetTextRectangle(Shape& rShape, awt::Rectangle& rRect)
return false;
auto aAdjGdList = rShape.getCustomShapeProperties()->getAdjustmentGuideList();
double fAdj = aAdjGdList.empty() ? 16667.0 : aAdjGdList[0].maFormula.toDouble();
- std::clamp<double>(fAdj, 0.0, 50000.0);
+ fAdj = std::clamp<double>(fAdj, 0.0, 50000.0);
double fDx = std::min(nWidth, nHeight) * fAdj / 100000.0 * 0.29289;
rRect.X = rShape.getPosition().X;
rRect.Y = rShape.getPosition().Y;