[Libreoffice-commits] .: sw/source

Philipp Riemer priemer at kemper.freedesktop.org
Mon Jul 2 08:25:15 PDT 2012


 sw/source/core/bastyp/swrect.cxx |   10 +++++-----
 1 file changed, 5 insertions(+), 5 deletions(-)

New commits:
commit 73243adcbe99f3ebd6eb77404168f4c3f91d74cd
Author: Philipp Riemer <ruderphilipp at gmail.com>
Date:   Mon Jul 2 17:24:10 2012 +0200

    fix coding style of previously added tmp variable
    
    Change-Id: I40d67918e13239141176ff31159653f79af46f88

diff --git a/sw/source/core/bastyp/swrect.cxx b/sw/source/core/bastyp/swrect.cxx
index a905dd3..12af59d 100644
--- a/sw/source/core/bastyp/swrect.cxx
+++ b/sw/source/core/bastyp/swrect.cxx
@@ -129,11 +129,11 @@ sal_Bool SwRect::IsInside( const Point& rPoint ) const
 // mouse moving of table borders
 sal_Bool SwRect::IsNear( const Point& rPoint, long nTolerance ) const
 {
-    sal_Bool InTolerance = (((Left()   - nTolerance) <= rPoint.X()) &&
-                            ((Top()    - nTolerance) <= rPoint.Y()) &&
-                            ((Right()  + nTolerance) >= rPoint.X()) &&
-                            ((Bottom() + nTolerance) >= rPoint.Y()));
-    return IsInside(rPoint) || InTolerance;
+    bool bIsNearby = (((Left()   - nTolerance) <= rPoint.X()) &&
+                      ((Top()    - nTolerance) <= rPoint.Y()) &&
+                      ((Right()  + nTolerance) >= rPoint.X()) &&
+                      ((Bottom() + nTolerance) >= rPoint.Y()));
+    return IsInside(rPoint) || bIsNearby;
 }
 
 


More information about the Libreoffice-commits mailing list