summaryrefslogtreecommitdiff
path: root/sw/source/filter/ww8/ww8par6.cxx
diff options
context:
space:
mode:
authorMike Kaganski <mike.kaganski@collabora.com>2019-02-08 17:41:36 +0300
committerMike Kaganski <mike.kaganski@collabora.com>2019-02-11 07:08:50 +0100
commit30c0134cd31c1409c374b9b0b38d2f2ac2f4bd03 (patch)
tree5b5db3b64e6b9d601a508cdb427e2ca990fa72f2 /sw/source/filter/ww8/ww8par6.cxx
parent04c1a98c10a24e65c4460d198c4009dc512c44ab (diff)
tdf#120703 PVS: V560 A part of conditional expression is always true/false
Change-Id: I4449fead67459bdcbdc0e9320129e7a5b36aecd9 Reviewed-on: https://gerrit.libreoffice.org/67545 Tested-by: Jenkins Reviewed-by: Mike Kaganski <mike.kaganski@collabora.com>
Diffstat (limited to 'sw/source/filter/ww8/ww8par6.cxx')
-rw-r--r--sw/source/filter/ww8/ww8par6.cxx6
1 files changed, 1 insertions, 5 deletions
diff --git a/sw/source/filter/ww8/ww8par6.cxx b/sw/source/filter/ww8/ww8par6.cxx
index 1f2487dfa51b..deae6c38a6e2 100644
--- a/sw/source/filter/ww8/ww8par6.cxx
+++ b/sw/source/filter/ww8/ww8par6.cxx
@@ -787,10 +787,7 @@ void SwWW8ImplReader::HandleLineNumbering(const wwSection &rSection)
m_bNoLnNumYet = false;
}
- if (
- (0 < rSection.maSep.lnnMin) ||
- (bRestartLnNumPerSection && !m_bNoLnNumYet)
- )
+ if ((0 < rSection.maSep.lnnMin) || bRestartLnNumPerSection)
{
SwFormatLineNumber aLN;
if (const SwFormatLineNumber* pLN
@@ -802,7 +799,6 @@ void SwWW8ImplReader::HandleLineNumbering(const wwSection &rSection)
NewAttr(aLN);
m_xCtrlStck->SetAttr(*m_pPaM->GetPoint(), RES_LINENUMBER);
}
- m_bNoLnNumYet = false;
}
}