oox/source/drawingml/transform2dcontext.cxx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
New commits: commit f570de5df5a51a593e5fe361bbd79fa5cd6d8173 Author: Stephan Bergmann <sberg...@redhat.com> AuthorDate: Thu Jul 21 13:34:48 2022 +0200 Commit: Stephan Bergmann <sberg...@redhat.com> CommitDate: Thu Jul 21 14:52:54 2022 +0200 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 <sberg...@redhat.com> 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;