Kaydet (Commit) dc889a9a authored tarafından Noel Grandin's avatar Noel Grandin Kaydeden (comit) Noel Grandin

loplugin:fpcomparison in slideshow/

Change-Id: Ic910deea47065d1f69748b95e59d19c6cda5d29b
Reviewed-on: https://gerrit.libreoffice.org/21863Tested-by: 's avatarJenkins <ci@libreoffice.org>
Reviewed-by: 's avatarNoel Grandin <noelgrandin@gmail.com>
üst e2bada96
......@@ -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;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment