diff options
author | Noel Grandin <noel.grandin@collabora.co.uk> | 2017-11-23 10:39:41 +0200 |
---|---|---|
committer | Noel Grandin <noel.grandin@collabora.co.uk> | 2017-11-23 14:11:24 +0100 |
commit | e0846b7abe78e55bc1e959143d980208077b13ca (patch) | |
tree | 988de98c368eeb794cfeaad90462d9db6e995927 /svl | |
parent | 1db2cdd97155f690fa9e08911c20ea3d246418dc (diff) |
loplugin:simplifybool can't invert conditions involving float types
so revert some of the changes from
commit 7a1c21e53fc4733a4bb52282ce0098fcc085ab0e
loplugin:simplifybool for negation of comparison operator
Change-Id: I937d575b86c1e418805d399b0dc16ae91876b4fe
Reviewed-on: https://gerrit.libreoffice.org/45130
Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
Tested-by: Noel Grandin <noel.grandin@collabora.co.uk>
Diffstat (limited to 'svl')
-rw-r--r-- | svl/source/numbers/zformat.cxx | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/svl/source/numbers/zformat.cxx b/svl/source/numbers/zformat.cxx index 9a314d40b6aa..d3e48317f4d0 100644 --- a/svl/source/numbers/zformat.cxx +++ b/svl/source/numbers/zformat.cxx @@ -2368,7 +2368,7 @@ bool SvNumberformat::GetOutputString(double fNumber, { if (::rtl::math::isSignBitSet(fNumber)) { - if (fNumber >= 0.0) + if (!(fNumber < 0.0)) fNumber = -fNumber; // do not display -0.0 } if (fNumber == 0.0) |