[Libreoffice-commits] core.git: slideshow/source
Noel Grandin
noel at peralex.com
Thu Feb 4 06:23:55 UTC 2016
slideshow/source/engine/color.cxx | 6 +++---
1 file changed, 3 insertions(+), 3 deletions(-)
New commits:
commit dc889a9a3054e99f997c2377b7e312396366f4ba
Author: Noel Grandin <noel at peralex.com>
Date: Wed Jan 27 11:04:56 2016 +0200
loplugin:fpcomparison in slideshow/
Change-Id: Ic910deea47065d1f69748b95e59d19c6cda5d29b
Reviewed-on: https://gerrit.libreoffice.org/21863
Tested-by: Jenkins <ci at libreoffice.org>
Reviewed-by: Noel Grandin <noelgrandin at gmail.com>
diff --git a/slideshow/source/engine/color.cxx b/slideshow/source/engine/color.cxx
index 17b1e3c..f31c36c 100644
--- a/slideshow/source/engine/color.cxx
+++ b/slideshow/source/engine/color.cxx
@@ -69,11 +69,11 @@ namespace slideshow
nDelta/(2.0-nMax-nMin) :
nDelta/(nMax + nMin);
- if( nRed == nMax )
+ if( rtl::math::approxEqual(nRed, nMax) )
aRes.mnHue = (nGreen - nBlue)/nDelta;
- else if( nGreen == nMax )
+ else if( rtl::math::approxEqual(nGreen, nMax) )
aRes.mnHue = 2.0 + (nBlue - nRed)/nDelta;
- else if( nBlue == nMax )
+ else if( rtl::math::approxEqual(nBlue, nMax) )
aRes.mnHue = 4.0 + (nRed - nGreen)/nDelta;
aRes.mnHue *= 60.0;
More information about the Libreoffice-commits
mailing list