diff options
author | Noel Grandin <noel@peralex.com> | 2016-01-27 11:06:52 +0200 |
---|---|---|
committer | Noel Grandin <noelgrandin@gmail.com> | 2016-02-04 06:32:02 +0000 |
commit | 27a114e73f9ce64f360b045233e1c9c74c207880 (patch) | |
tree | a39a67b5a592e5708d013c57b0b38d1af9a0273a /cppcanvas | |
parent | 4fccc4376cd253648bf0dd1d49dd80bc76148f08 (diff) |
loplugin:fpcomparison in cppcanvas/
Change-Id: I23d7e217f2616b488579be0617dbc14cd407540f
Reviewed-on: https://gerrit.libreoffice.org/21868
Tested-by: Jenkins <ci@libreoffice.org>
Reviewed-by: Noel Grandin <noelgrandin@gmail.com>
Diffstat (limited to 'cppcanvas')
-rw-r--r-- | cppcanvas/source/mtfrenderer/mtftools.cxx | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/cppcanvas/source/mtfrenderer/mtftools.cxx b/cppcanvas/source/mtfrenderer/mtftools.cxx index 32c0af7c61ed..85fc5c86d9d3 100644 --- a/cppcanvas/source/mtfrenderer/mtftools.cxx +++ b/cppcanvas/source/mtfrenderer/mtftools.cxx @@ -126,8 +126,8 @@ namespace cppcanvas { const bool bOffsetting( !rOffset.equalZero() ); const bool bScaling( pScaling && - pScaling->getX() != 1.0 && - pScaling->getY() != 1.0 ); + !rtl::math::approxEqual(pScaling->getX(), 1.0) && + !rtl::math::approxEqual(pScaling->getY(), 1.0) ); const bool bRotation( pRotation && *pRotation != 0.0 ); |