Kaydet (Commit) 73243adc authored tarafından Philipp Riemer's avatar Philipp Riemer

fix coding style of previously added tmp variable

Change-Id: I40d67918e13239141176ff31159653f79af46f88
üst fb2eac0f
...@@ -129,11 +129,11 @@ sal_Bool SwRect::IsInside( const Point& rPoint ) const ...@@ -129,11 +129,11 @@ sal_Bool SwRect::IsInside( const Point& rPoint ) const
// mouse moving of table borders // mouse moving of table borders
sal_Bool SwRect::IsNear( const Point& rPoint, long nTolerance ) const sal_Bool SwRect::IsNear( const Point& rPoint, long nTolerance ) const
{ {
sal_Bool InTolerance = (((Left() - nTolerance) <= rPoint.X()) && bool bIsNearby = (((Left() - nTolerance) <= rPoint.X()) &&
((Top() - nTolerance) <= rPoint.Y()) && ((Top() - nTolerance) <= rPoint.Y()) &&
((Right() + nTolerance) >= rPoint.X()) && ((Right() + nTolerance) >= rPoint.X()) &&
((Bottom() + nTolerance) >= rPoint.Y())); ((Bottom() + nTolerance) >= rPoint.Y()));
return IsInside(rPoint) || InTolerance; return IsInside(rPoint) || bIsNearby;
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment