Kaydet (Commit) 302bd1c4 authored tarafından Norbert Thiebaud's avatar Norbert Thiebaud

coverity#441207: Logicaly dead code

Change-Id: Ia198d64a95d86a1cd47987d6db3aa3faafba84f4
üst fa2d66da
......@@ -222,7 +222,7 @@ bool XMLBorderHdl::importXML( const OUString& rStrImpValue, uno::Any& rValue, co
}
// if there is no style or a different style than none but no width,
// then the declaration is not valid.
// then the declaration is not valid.
if (!bHasStyle || (table::BorderLineStyle::NONE != nStyle && !bHasWidth))
return false;
......@@ -237,7 +237,7 @@ bool XMLBorderHdl::importXML( const OUString& rStrImpValue, uno::Any& rValue, co
}
// first of all, delete an empty line
if ((bHasStyle && table::BorderLineStyle::NONE == nStyle) ||
if (table::BorderLineStyle::NONE == nStyle ||
(bHasWidth && USHRT_MAX == nNamedWidth && 0 == nWidth) )
{
aBorderLine.InnerLineWidth = 0;
......@@ -245,7 +245,7 @@ bool XMLBorderHdl::importXML( const OUString& rStrImpValue, uno::Any& rValue, co
aBorderLine.LineDistance = 0;
aBorderLine.LineWidth = 0;
}
else if( bHasWidth )
else
{
if( USHRT_MAX != nNamedWidth )
{
......@@ -257,11 +257,6 @@ bool XMLBorderHdl::importXML( const OUString& rStrImpValue, uno::Any& rValue, co
lcl_frmitems_setXMLBorderStyle( aBorderLine, nStyle );
}
}
else
{
aBorderLine.LineWidth = 0;
lcl_frmitems_setXMLBorderStyle( aBorderLine, nStyle );
}
// set color
if( bHasColor )
......
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