diff options
author | Michael Stahl <Michael.Stahl@cib.de> | 2018-11-18 19:34:39 +0100 |
---|---|---|
committer | Michael Stahl <Michael.Stahl@cib.de> | 2018-11-18 20:34:20 +0100 |
commit | 02ee8445bb7360617d8759eb27575395992e1e13 (patch) | |
tree | 75df27c736e440593f3d4e829fd557c5a1bed58d | |
parent | c06570c6e919ee090715049abfdfbd55d34aa467 (diff) |
coverity#1441443 SwTextFrame always has a SwTextNode
Change-Id: I9453ec9f3021702d89efed0adcf3422a59ae28ae
Reviewed-on: https://gerrit.libreoffice.org/63530
Tested-by: Jenkins
Reviewed-by: Michael Stahl <Michael.Stahl@cib.de>
-rw-r--r-- | sw/source/core/text/txtfrm.cxx | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/sw/source/core/text/txtfrm.cxx b/sw/source/core/text/txtfrm.cxx index bc5f6e9cfa0f..4b3b0fb704a1 100644 --- a/sw/source/core/text/txtfrm.cxx +++ b/sw/source/core/text/txtfrm.cxx @@ -3307,7 +3307,7 @@ void SwTextFrame::CalcAdditionalFirstLineOffset() const SwTextNode* pTextNode( GetTextNodeForParaProps() ); // sw_redlinehide: check that pParaPropsNode is the correct one assert(pTextNode->IsNumbered(getRootFrame()) == pTextNode->IsNumbered(nullptr)); - if (pTextNode && pTextNode->IsNumbered(getRootFrame()) && + if (pTextNode->IsNumbered(getRootFrame()) && pTextNode->IsCountedInList() && pTextNode->GetNumRule()) { int nListLevel = pTextNode->GetActualListLevel(); |