From 27a114e73f9ce64f360b045233e1c9c74c207880 Mon Sep 17 00:00:00 2001 From: Noel Grandin Date: Wed, 27 Jan 2016 11:06:52 +0200 Subject: [PATCH] loplugin:fpcomparison in cppcanvas/ Change-Id: I23d7e217f2616b488579be0617dbc14cd407540f Reviewed-on: https://gerrit.libreoffice.org/21868 Tested-by: Jenkins Reviewed-by: Noel Grandin --- cppcanvas/source/mtfrenderer/mtftools.cxx | 4 ++-- 1 file 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 );