summaryrefslogtreecommitdiff
path: root/vcl/quartz
diff options
context:
space:
mode:
authorLuboš Luňák <l.lunak@collabora.com>2022-02-01 11:19:11 +0100
committerLuboš Luňák <l.lunak@collabora.com>2022-02-02 10:16:40 +0100
commit3b491e84dc2bec4117060bbbfa52b38b7871a220 (patch)
tree4468badcd8f38d1da7554280f16c31e2cbf647b0 /vcl/quartz
parent8839705b6f719f8f3bd5275eac57b78e26e4050b (diff)
fix std::min() used instead of std::max()
In 534fc16a9f8cd01bb88485e2cf6b9cd33aed3745 I got this backwards, if the value is not supposed to be 0, then it should be at least the small value, not at most. Change-Id: Ic55d2b2402985d26e77be0d1605b9ba5985b5ac7 Reviewed-on: https://gerrit.libreoffice.org/c/core/+/129277 Tested-by: Jenkins Reviewed-by: Luboš Luňák <l.lunak@collabora.com>
Diffstat (limited to 'vcl/quartz')
-rw-r--r--vcl/quartz/AquaGraphicsBackend.cxx2
1 files changed, 1 insertions, 1 deletions
diff --git a/vcl/quartz/AquaGraphicsBackend.cxx b/vcl/quartz/AquaGraphicsBackend.cxx
index 690cbf78ae9c..383fdc0f7fd0 100644
--- a/vcl/quartz/AquaGraphicsBackend.cxx
+++ b/vcl/quartz/AquaGraphicsBackend.cxx
@@ -820,7 +820,7 @@ bool AquaGraphicsBackend::drawPolyLine(const basegfx::B2DHomMatrix& rObjectToDev
break;
}
// convert miter minimum angle to miter limit
- CGFloat fCGMiterLimit = 1.0 / sin(std::min(fMiterMinimumAngle, 0.01 * M_PI) / 2.0);
+ CGFloat fCGMiterLimit = 1.0 / sin(std::max(fMiterMinimumAngle, 0.01 * M_PI) / 2.0);
// setup cap attribute
CGLineCap aCGLineCap(kCGLineCapButt);