diff options
author | Mariusz Dykierek <mariuszdykierek@gmail.com> | 2012-02-17 15:25:28 +0000 |
---|---|---|
committer | Michael Meeks <michael.meeks@suse.com> | 2012-02-17 15:25:28 +0000 |
commit | 51b3eb3a391cc5329d358a2d4159861537feab26 (patch) | |
tree | 5d3eabd653f8ebd1506056fee295d374c1e484d1 | |
parent | b8f007d05250258a8d8b5113298867f142af6e09 (diff) |
clean up logic
-rw-r--r-- | editeng/source/items/borderline.cxx | 21 |
1 files changed, 6 insertions, 15 deletions
diff --git a/editeng/source/items/borderline.cxx b/editeng/source/items/borderline.cxx index b617ff43a4dc..167714189a8a 100644 --- a/editeng/source/items/borderline.cxx +++ b/editeng/source/items/borderline.cxx @@ -492,29 +492,20 @@ bool SvxBorderLine::HasPriority( const SvxBorderLine& rOtherLine ) const const sal_uInt16 nThisSize = GetOutWidth() + GetDistance() + GetInWidth(); const sal_uInt16 nOtherSize = rOtherLine.GetOutWidth() + rOtherLine.GetDistance() + rOtherLine.GetInWidth(); - if (nThisSize > nOtherSize) + if ( nThisSize > nOtherSize ) { return true; } - else if (nThisSize < nOtherSize) + else if ( nThisSize < nOtherSize ) { return false; } - else + else if ( rOtherLine.GetInWidth() && !GetInWidth() ) { - if ( rOtherLine.GetInWidth() && !GetInWidth() ) - { - return true; - } - else if ( GetInWidth() && !rOtherLine.GetInWidth() ) - { - return false; - } - else - { - return false; - } + return true; } + + return false; } } // namespace editeng |