diff options
Diffstat (limited to 'sw/source/core/crsr/pam.cxx')
-rw-r--r-- | sw/source/core/crsr/pam.cxx | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/sw/source/core/crsr/pam.cxx b/sw/source/core/crsr/pam.cxx index 36c0aa2fcac0..1b3801f9a657 100644 --- a/sw/source/core/crsr/pam.cxx +++ b/sw/source/core/crsr/pam.cxx @@ -1072,9 +1072,9 @@ OUString SwPaM::GetTxt() const void SwPaM::InvalidatePaM() { - const SwNode *_pNd=this->GetNode(); - const SwTxtNode *_pTxtNd=(_pNd!=NULL?_pNd->GetTxtNode():NULL); - if (_pTxtNd!=NULL) + const SwNode &_pNd = this->GetNode(); + const SwTxtNode *_pTxtNd = _pNd.GetTxtNode(); + if (_pTxtNd != NULL) { // pretend that the PaM marks inserted text to recalc the portion... SwInsTxt aHint( Start()->nContent.GetIndex(), |