tools/source/generic/gen.cxx | 11 +++++------ 1 file changed, 5 insertions(+), 6 deletions(-)
New commits: commit d1c91627d9c7d117ee2e680f5c24844f7c4d8515 Author: Julien Nabet <serval2...@yahoo.fr> Date: Fri Nov 6 23:47:42 2015 +0100 Return early Change-Id: Ifef410c1495d1a2b99693f4669d81d6293f74f6a Reviewed-on: https://gerrit.libreoffice.org/19834 Tested-by: Jenkins <c...@libreoffice.org> Reviewed-by: Julien Nabet <serval2...@yahoo.fr> diff --git a/tools/source/generic/gen.cxx b/tools/source/generic/gen.cxx index 33a4ae4..8306ef8 100644 --- a/tools/source/generic/gen.cxx +++ b/tools/source/generic/gen.cxx @@ -133,28 +133,27 @@ bool Rectangle::IsInside( const Point& rPoint ) const if ( IsEmpty() ) return false; - bool bRet = true; if ( nLeft <= nRight ) { if ( (rPoint.X() < nLeft) || (rPoint.X() > nRight) ) - bRet = false; + return false; } else { if ( (rPoint.X() > nLeft) || (rPoint.X() < nRight) ) - bRet = false; + return false; } if ( nTop <= nBottom ) { if ( (rPoint.Y() < nTop) || (rPoint.Y() > nBottom) ) - bRet = false; + return false; } else { if ( (rPoint.Y() > nTop) || (rPoint.Y() < nBottom) ) - bRet = false; + return false; } - return bRet; + return true; } bool Rectangle::IsInside( const Rectangle& rRect ) const _______________________________________________ Libreoffice-commits mailing list libreoffice-comm...@lists.freedesktop.org http://lists.freedesktop.org/mailman/listinfo/libreoffice-commits