summaryrefslogtreecommitdiff
path: root/sw/source/core/draw
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 /sw/source/core/draw
parent258643235c1d6ac21f7b53c94493625a0a6c95bc (diff)
simplify, IsEmpty() checks both Right and Bottom already
Change-Id: I81fa9f80593bdea5098215f71c44b35e0087a6fc
Diffstat (limited to 'sw/source/core/draw')
-rw-r--r--sw/source/core/draw/dflyobj.cxx8
1 files changed, 2 insertions, 6 deletions
diff --git a/sw/source/core/draw/dflyobj.cxx b/sw/source/core/draw/dflyobj.cxx
index a69ac3da6785..8a4b261ee441 100644
--- a/sw/source/core/draw/dflyobj.cxx
+++ b/sw/source/core/draw/dflyobj.cxx
@@ -332,9 +332,7 @@ basegfx::B2DRange SwVirtFlyDrawObj::getOuterBound() const
{
const Rectangle aOuterRectangle(pFlyFrame->Frm().Pos(), pFlyFrame->Frm().SSize());
- if(!aOuterRectangle.IsEmpty()
- && RECT_EMPTY != aOuterRectangle.Right()
- && RECT_EMPTY != aOuterRectangle.Bottom())
+ if(!aOuterRectangle.IsEmpty())
{
aOuterRange.expand(basegfx::B2DTuple(aOuterRectangle.Left(), aOuterRectangle.Top()));
aOuterRange.expand(basegfx::B2DTuple(aOuterRectangle.Right(), aOuterRectangle.Bottom()));
@@ -358,9 +356,7 @@ basegfx::B2DRange SwVirtFlyDrawObj::getInnerBound() const
{
const Rectangle aInnerRectangle(pFlyFrame->Frm().Pos() + pFlyFrame->Prt().Pos(), pFlyFrame->Prt().SSize());
- if(!aInnerRectangle.IsEmpty()
- && RECT_EMPTY != aInnerRectangle.Right()
- && RECT_EMPTY != aInnerRectangle.Bottom())
+ if(!aInnerRectangle.IsEmpty())
{
aInnerRange.expand(basegfx::B2DTuple(aInnerRectangle.Left(), aInnerRectangle.Top()));
aInnerRange.expand(basegfx::B2DTuple(aInnerRectangle.Right(), aInnerRectangle.Bottom()));