[Libreoffice-commits] core.git: sw/source
Julien Nabet
serval2412 at yahoo.fr
Fri Dec 2 06:45:05 UTC 2016
sw/source/core/doc/DocumentFieldsManager.cxx | 6 ++++--
1 file changed, 4 insertions(+), 2 deletions(-)
New commits:
commit 12c75e0c3393044438bfa2c92c3f9b29d443021e
Author: Julien Nabet <serval2412 at yahoo.fr>
Date: Fri Dec 2 07:25:20 2016 +0100
-Werror=maybe-uninitialized
Change-Id: I28804bb7b668d5c92bd61a8539860e2a8dddf8de
Reviewed-on: https://gerrit.libreoffice.org/31522
Reviewed-by: Julien Nabet <serval2412 at yahoo.fr>
Tested-by: Julien Nabet <serval2412 at yahoo.fr>
diff --git a/sw/source/core/doc/DocumentFieldsManager.cxx b/sw/source/core/doc/DocumentFieldsManager.cxx
index 1053a9c..85e28a8 100644
--- a/sw/source/core/doc/DocumentFieldsManager.cxx
+++ b/sw/source/core/doc/DocumentFieldsManager.cxx
@@ -595,8 +595,10 @@ void DocumentFieldsManager::UpdateTableFields( SfxPoolItem* pHt )
// table where &m_rDoc field is located
const SwTableNode* pTableNd;
const SwTextNode& rTextNd = pFormatField->GetTextField()->GetTextNode();
- if( !rTextNd.GetNodes().IsDocNodes() ||
- nullptr == ( pTableNd = rTextNd.FindTableNode() ) )
+ if(!rTextNd.GetNodes().IsDocNodes())
+ continue;
+ pTableNd = rTextNd.FindTableNode();
+ if (pTableNd == nullptr)
continue;
switch( pUpdateField->m_eFlags )
More information about the Libreoffice-commits
mailing list