sw/source/core/docnode/ndnum.cxx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
New commits: commit 6610bfdd8c8923e85b30e364c6ea5c7abf218367 Author: Caolán McNamara <caol...@redhat.com> AuthorDate: Wed Nov 10 15:55:07 2021 +0000 Commit: Caolán McNamara <caol...@redhat.com> CommitDate: Wed Nov 10 18:17:56 2021 +0100 use a less tortured syntax for the check Change-Id: If526f187d855760c0462f6573d1f2e42418d9094 Reviewed-on: https://gerrit.libreoffice.org/c/core/+/124996 Tested-by: Jenkins Reviewed-by: Caolán McNamara <caol...@redhat.com> diff --git a/sw/source/core/docnode/ndnum.cxx b/sw/source/core/docnode/ndnum.cxx index 9cce9a6b7780..e27755f9ed33 100644 --- a/sw/source/core/docnode/ndnum.cxx +++ b/sw/source/core/docnode/ndnum.cxx @@ -40,7 +40,7 @@ void SwNodes::UpdateOutlineNode(SwNode & rNd) { SwTextNode * pTextNd = rNd.GetTextNode(); - if (!(pTextNd && pTextNd->IsOutlineStateChanged())) + if (!pTextNd || !pTextNd->IsOutlineStateChanged()) return; bool bFound = m_pOutlineNodes->find(pTextNd) != m_pOutlineNodes->end();