summaryrefslogtreecommitdiff
path: root/sw
diff options
context:
space:
mode:
authorPhilipp Riemer <ruderphilipp@gmail.com>2012-07-02 17:24:10 +0200
committerPhilipp Riemer <ruderphilipp@gmail.com>2012-07-02 17:24:10 +0200
commit73243adcbe99f3ebd6eb77404168f4c3f91d74cd (patch)
tree519b93be66447c57374f1f0fb6c019ce346b66a0 /sw
parentfb2eac0f8f65fc1f063ebec0ed19e2ed639e0b32 (diff)
fix coding style of previously added tmp variable
Change-Id: I40d67918e13239141176ff31159653f79af46f88
Diffstat (limited to 'sw')
-rw-r--r--sw/source/core/bastyp/swrect.cxx10
1 files changed, 5 insertions, 5 deletions
diff --git a/sw/source/core/bastyp/swrect.cxx b/sw/source/core/bastyp/swrect.cxx
index a905dd300945..12af59dff5ae 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;
}