From e0846b7abe78e55bc1e959143d980208077b13ca Mon Sep 17 00:00:00 2001 From: Noel Grandin Date: Thu, 23 Nov 2017 10:39:41 +0200 Subject: 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 Tested-by: Noel Grandin --- tools/source/generic/b3dtrans.cxx | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'tools') diff --git a/tools/source/generic/b3dtrans.cxx b/tools/source/generic/b3dtrans.cxx index c65074482529..1162f24993f6 100644 --- a/tools/source/generic/b3dtrans.cxx +++ b/tools/source/generic/b3dtrans.cxx @@ -59,11 +59,11 @@ void B3dTransformationSet::Orientation(basegfx::B3DHomMatrix& rTarget, const bas void B3dTransformationSet::Frustum(basegfx::B3DHomMatrix& rTarget, double fLeft, double fRight, double fBottom, double fTop, double fNear, double fFar) { - if(fNear <= 0.0) + if(!(fNear > 0.0)) { fNear = 0.001; } - if(fFar <= 0.0) + if(!(fFar > 0.0)) { fFar = 1.0; } -- cgit