Kaydet (Commit) 7d6ce7ba authored tarafından Michael Stahl's avatar Michael Stahl Kaydeden (comit) Caolán McNamara

sw: PVS-Studio V616 'WW8_TOP' named constant with the value of 0

... is used in the bitwise operation

(regression from de0866b5)

Change-Id: Id2377543df7bce31aadf8ad536ef96bcf818963f
Reviewed-on: https://gerrit.libreoffice.org/14838Reviewed-by: 's avatarCaolán McNamara <caolanm@redhat.com>
Tested-by: 's avatarCaolán McNamara <caolanm@redhat.com>
üst fe3feff8
......@@ -4736,16 +4736,16 @@ void SwWW8ImplReader::Read_Border(sal_uInt16 , const sal_uInt8*, short nLen)
Rectangle aInnerDist;
GetBorderDistance( aBrcs, aInnerDist );
if ((nBorder & WW8_LEFT)==WW8_LEFT)
if (nBorder & (1 << WW8_LEFT))
aBox.SetDistance( (sal_uInt16)aInnerDist.Left(), BOX_LINE_LEFT );
if ((nBorder & WW8_TOP)==WW8_TOP)
if (nBorder & (1 << WW8_TOP))
aBox.SetDistance( (sal_uInt16)aInnerDist.Top(), BOX_LINE_TOP );
if ((nBorder & WW8_RIGHT)==WW8_RIGHT)
if (nBorder & (1 << WW8_RIGHT))
aBox.SetDistance( (sal_uInt16)aInnerDist.Right(), BOX_LINE_RIGHT );
if ((nBorder & WW8_BOT)==WW8_BOT)
if (nBorder & (1 << WW8_BOT))
aBox.SetDistance( (sal_uInt16)aInnerDist.Bottom(), BOX_LINE_BOTTOM );
NewAttr( aBox );
......
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