diff options
-rw-r--r-- | sw/source/core/doc/doc.cxx | 2 | ||||
-rw-r--r-- | sw/source/core/doc/docredln.cxx | 6 |
2 files changed, 5 insertions, 3 deletions
diff --git a/sw/source/core/doc/doc.cxx b/sw/source/core/doc/doc.cxx index a461fb93b6df..3a7becd66462 100644 --- a/sw/source/core/doc/doc.cxx +++ b/sw/source/core/doc/doc.cxx @@ -2581,7 +2581,7 @@ bool SwDoc::ContainsHiddenChars() const for( sal_uLong n = GetNodes().Count(); n; ) { SwNode* pNd = GetNodes()[ --n ]; - if ( ND_TEXTNODE == pNd->GetNodeType() && + if ( pNd->IsTxtNode() && ((SwTxtNode*)pNd)->HasHiddenCharAttribute( false ) ) return true; } diff --git a/sw/source/core/doc/docredln.cxx b/sw/source/core/doc/docredln.cxx index a17510483cd5..ba4cfe290e17 100644 --- a/sw/source/core/doc/docredln.cxx +++ b/sw/source/core/doc/docredln.cxx @@ -3251,14 +3251,16 @@ void SwRedline::InvalidateRange() // das Layout anstossen SwUpdateAttr aHt( 0, 0, RES_FMT_CHG ); SwNodes& rNds = GetDoc()->GetNodes(); - SwNode* pNd; for( sal_uLong n = nSttNd; n <= nEndNd; ++n ) - if( ND_TEXTNODE == ( pNd = rNds[ n ] )->GetNodeType() ) + { + SwNode* pNd = rNds[n]; + if( pNd->IsTxtNode() ) { aHt.nStart = n == nSttNd ? nSttCnt : 0; aHt.nEnd = n == nEndNd ? nEndCnt : ((SwTxtNode*)pNd)->GetTxt().Len(); ((SwTxtNode*)pNd)->ModifyNotification( &aHt, &aHt ); } + } } /************************************************************************* |