Kaydet (Commit) 51b3eb3a authored tarafından Mariusz Dykierek's avatar Mariusz Dykierek Kaydeden (comit) Michael Meeks

clean up logic

üst b8f007d0
...@@ -492,29 +492,20 @@ bool SvxBorderLine::HasPriority( const SvxBorderLine& rOtherLine ) const ...@@ -492,29 +492,20 @@ bool SvxBorderLine::HasPriority( const SvxBorderLine& rOtherLine ) const
const sal_uInt16 nThisSize = GetOutWidth() + GetDistance() + GetInWidth(); const sal_uInt16 nThisSize = GetOutWidth() + GetDistance() + GetInWidth();
const sal_uInt16 nOtherSize = rOtherLine.GetOutWidth() + rOtherLine.GetDistance() + rOtherLine.GetInWidth(); const sal_uInt16 nOtherSize = rOtherLine.GetOutWidth() + rOtherLine.GetDistance() + rOtherLine.GetInWidth();
if (nThisSize > nOtherSize) if ( nThisSize > nOtherSize )
{ {
return true; return true;
} }
else if (nThisSize < nOtherSize) else if ( nThisSize < nOtherSize )
{ {
return false; return false;
} }
else else if ( rOtherLine.GetInWidth() && !GetInWidth() )
{ {
if ( rOtherLine.GetInWidth() && !GetInWidth() ) return true;
{
return true;
}
else if ( GetInWidth() && !rOtherLine.GetInWidth() )
{
return false;
}
else
{
return false;
}
} }
return false;
} }
} // namespace editeng } // namespace editeng
......
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