sw/source/core/doc/DocumentFieldsManager.cxx |    6 ++++--
 1 file changed, 4 insertions(+), 2 deletions(-)

New commits:
commit 12c75e0c3393044438bfa2c92c3f9b29d443021e
Author: Julien Nabet <serval2...@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 <serval2...@yahoo.fr>
    Tested-by: Julien Nabet <serval2...@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 )
_______________________________________________
Libreoffice-commits mailing list
libreoffice-comm...@lists.freedesktop.org
https://lists.freedesktop.org/mailman/listinfo/libreoffice-commits

Reply via email to