summaryrefslogtreecommitdiff
path: root/basctl
diff options
context:
space:
mode:
authorNoel Grandin <noel@peralex.com>2015-08-20 16:21:32 +0200
committerNoel Grandin <noel@peralex.com>2015-08-25 09:58:31 +0200
commit3f02a38cfb7d2e2efe944244c9be264965481426 (patch)
tree4cadfc2f9bdc44ef486e83288a1470ce554cbb0e /basctl
parent258643235c1d6ac21f7b53c94493625a0a6c95bc (diff)
simplify, IsEmpty() checks both Right and Bottom already
Change-Id: I81fa9f80593bdea5098215f71c44b35e0087a6fc
Diffstat (limited to 'basctl')
-rw-r--r--basctl/source/dlged/dlgedview.cxx4
1 files changed, 1 insertions, 3 deletions
diff --git a/basctl/source/dlged/dlgedview.cxx b/basctl/source/dlged/dlgedview.cxx
index 4bd0a5d2e890..cacb081371e7 100644
--- a/basctl/source/dlged/dlgedview.cxx
+++ b/basctl/source/dlged/dlgedview.cxx
@@ -148,9 +148,7 @@ SdrObject* impLocalHitCorrection(SdrObject* pRetval, const Point& rPnt, sal_uInt
// will access aOutRect directly
const Rectangle aOuterRectangle(pDlgEdObj->GetLastBoundRect());
- if(!aOuterRectangle.IsEmpty()
- && RECT_EMPTY != aOuterRectangle.Right()
- && RECT_EMPTY != aOuterRectangle.Bottom())
+ if(!aOuterRectangle.IsEmpty())
{
basegfx::B2DRange aOuterRange(
aOuterRectangle.Left(), aOuterRectangle.Top(),