[Libreoffice-commits] core.git: cppcanvas/source

Noel Grandin noel at peralex.com
Thu Feb 4 06:32:46 UTC 2016


 cppcanvas/source/mtfrenderer/mtftools.cxx |    4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

New commits:
commit 27a114e73f9ce64f360b045233e1c9c74c207880
Author: Noel Grandin <noel at peralex.com>
Date:   Wed Jan 27 11:06:52 2016 +0200

    loplugin:fpcomparison in cppcanvas/
    
    Change-Id: I23d7e217f2616b488579be0617dbc14cd407540f
    Reviewed-on: https://gerrit.libreoffice.org/21868
    Tested-by: Jenkins <ci at libreoffice.org>
    Reviewed-by: Noel Grandin <noelgrandin at gmail.com>

diff --git a/cppcanvas/source/mtfrenderer/mtftools.cxx b/cppcanvas/source/mtfrenderer/mtftools.cxx
index 32c0af7..85fc5c8 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 );
 


More information about the Libreoffice-commits mailing list