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
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
{
if ( rOtherLine.GetInWidth() && !GetInWidth() )
else if ( rOtherLine.GetInWidth() && !GetInWidth() )
{
return true;
}
else if ( GetInWidth() && !rOtherLine.GetInWidth() )
{
return false;
}
else
{
return false;
}
}
}
} // 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