diff options
Diffstat (limited to 'vcl/source/edit/textundo.cxx')
-rw-r--r-- | vcl/source/edit/textundo.cxx | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/vcl/source/edit/textundo.cxx b/vcl/source/edit/textundo.cxx index 57a721ed2b33..207bb1959df3 100644 --- a/vcl/source/edit/textundo.cxx +++ b/vcl/source/edit/textundo.cxx @@ -173,20 +173,20 @@ void TextUndoDelPara::Undo() void TextUndoDelPara::Redo() { // pNode is not valid anymore in case an Undo joined paragraphs - mpNode = GetDoc()->GetNodes().GetObject( mnPara ); + mpNode = GetDoc()->GetNode( mnPara ); delete GetTEParaPortions()->GetObject( mnPara ); GetTEParaPortions()->Remove( mnPara ); // do not delete Node because of Undo! - GetDoc()->GetNodes().Remove( mnPara ); + GetDoc()->RemoveNode( mnPara ); GetTextEngine()->ImpParagraphRemoved( mnPara ); mbDelObject = true; // belongs again to the Undo - sal_uLong nParas = GetDoc()->GetNodes().Count(); + sal_uLong nParas = GetDoc()->CountNodes(); sal_uLong n = mnPara < nParas ? mnPara : (nParas-1); - TextNode* pN = GetDoc()->GetNodes().GetObject( n ); + TextNode* pN = GetDoc()->GetNode( n ); TextPaM aPaM( n, pN->GetText().getLength() ); SetSelection( aPaM ); } |