diff options
author | Michael Stahl <Michael.Stahl@cib.de> | 2019-04-09 17:15:50 +0200 |
---|---|---|
committer | Michael Stahl <Michael.Stahl@cib.de> | 2019-04-10 10:16:16 +0200 |
commit | 7587e39014c1b6ed505e9c10d9f0f0803fc986ac (patch) | |
tree | 4081aab0a96710a8343351f20abd9ca9c1dc5ffa /sw | |
parent | dab764b70855c884cdd1583911b68031635c0f10 (diff) |
tdf#124586 sw_redlinehide: fix crash in SwTextNode::NumRuleChgd()
(regression from c180c9447256588fe5e7991e06642883574760ae)
Change-Id: Ie3c935ee5dd42187ca8ad2b28406b80e63c0d1e3
Reviewed-on: https://gerrit.libreoffice.org/70467
Reviewed-by: Michael Stahl <Michael.Stahl@cib.de>
Tested-by: Michael Stahl <Michael.Stahl@cib.de>
Diffstat (limited to 'sw')
-rw-r--r-- | sw/source/core/txtnode/ndtxt.cxx | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/sw/source/core/txtnode/ndtxt.cxx b/sw/source/core/txtnode/ndtxt.cxx index 6bf96c6d6a2c..05135a9868cf 100644 --- a/sw/source/core/txtnode/ndtxt.cxx +++ b/sw/source/core/txtnode/ndtxt.cxx @@ -2863,7 +2863,10 @@ void SwTextNode::NumRuleChgd() if ( pNumRule && pNumRule != GetNum()->GetNumRule() ) { mpNodeNum->ChangeNumRule( *pNumRule ); - mpNodeNumRLHidden->ChangeNumRule( *pNumRule ); + if (mpNodeNumRLHidden) + { + mpNodeNumRLHidden->ChangeNumRule(*pNumRule); + } } } |