sw/source/core/attr/cellatr.cxx | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-)
New commits: commit 9e9f52ad17a73f353b372bcdc9971443b961d39a Author: Julien Nabet <serval2...@yahoo.fr> Date: Thu Dec 1 22:39:58 2016 +0100 -Werror=maybe-uninitialized Change-Id: I15e9d6397c4a5437c7441fa659ff953ed0b64bec Reviewed-on: https://gerrit.libreoffice.org/31509 Tested-by: Jenkins <c...@libreoffice.org> Reviewed-by: Julien Nabet <serval2...@yahoo.fr> diff --git a/sw/source/core/attr/cellatr.cxx b/sw/source/core/attr/cellatr.cxx index 9a99b65..6a0401b 100644 --- a/sw/source/core/attr/cellatr.cxx +++ b/sw/source/core/attr/cellatr.cxx @@ -115,8 +115,10 @@ void SwTableBoxFormula::ChangeState( const SfxPoolItem* pItem ) // detect table that contains this attribute const SwTableNode* pTableNd; const SwNode* pNd = GetNodeOfFormula(); - if( pNd && &pNd->GetNodes() == &pNd->GetDoc()->GetNodes() && - nullptr != ( pTableNd = pNd->FindTableNode() )) + if (!pNd || &pNd->GetNodes() != &pNd->GetDoc()->GetNodes()) + return; + pTableNd = pNd->FindTableNode(); + if( pTableNd != nullptr ) { switch( pUpdateField->m_eFlags ) { _______________________________________________ Libreoffice-commits mailing list libreoffice-comm...@lists.freedesktop.org https://lists.freedesktop.org/mailman/listinfo/libreoffice-commits