summaryrefslogtreecommitdiff
path: root/vcl
diff options
context:
space:
mode:
authorNoel Grandin <noel.grandin@collabora.co.uk>2024-03-07 15:54:32 +0200
committerNoel Grandin <noel.grandin@collabora.co.uk>2024-03-07 18:19:30 +0100
commitd98f71fb6b8b2b559bffc8d10584fe1dd7cf5843 (patch)
treedaada503436a9c70fd79cc6a5e29f079d3c4c112 /vcl
parente35e76924d6e08e5eb5a0742ab6a6c567dce71b8 (diff)
Simplify some rtl::math::approxEqual calls
Comparing with zero is simple - the implementation special-zases zero. Change-Id: Ia2fe8a1100941f72023a74955ebfbb4f5f25b90d Reviewed-on: https://gerrit.libreoffice.org/c/core/+/164540 Tested-by: Jenkins Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
Diffstat (limited to 'vcl')
-rw-r--r--vcl/source/outdev/bitmapex.cxx2
1 files changed, 1 insertions, 1 deletions
diff --git a/vcl/source/outdev/bitmapex.cxx b/vcl/source/outdev/bitmapex.cxx
index 04a50d554570..defabf09b8fd 100644
--- a/vcl/source/outdev/bitmapex.cxx
+++ b/vcl/source/outdev/bitmapex.cxx
@@ -459,7 +459,7 @@ void OutputDevice::DrawTransformedBitmapEx(
if(rBitmapEx.IsEmpty())
return;
- if(rtl::math::approxEqual( fAlpha, 0.0 ))
+ if( fAlpha == 0.0 )
return;
// MM02 compared to other public methods of OutputDevice