--
Regards,
Mariusz Dykerek
diff --git a/editeng/source/items/borderline.cxx b/editeng/source/items/borderline.cxx
index b617ff4..1677141 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
Context
- [PATCH] [core/editeng/source/items/borderline.cxx:514] -> [core/editeng/source/items/borderline.cxx:509]: (style) Found duplicate branches for if and else. · Mariusz Dykierek
Privacy Policy |
Impressum (Legal Info) |
Copyright information: Unless otherwise specified, all text and images
on this website are licensed under the
Creative Commons Attribution-Share Alike 3.0 License.
This does not include the source code of LibreOffice, which is
licensed under the Mozilla Public License (
MPLv2).
"LibreOffice" and "The Document Foundation" are
registered trademarks of their corresponding registered owners or are
in actual use as trademarks in one or more countries. Their respective
logos and icons are also subject to international copyright laws. Use
thereof is explained in our
trademark policy.