summaryrefslogtreecommitdiff
path: root/vcl/source/edit/textundo.cxx
diff options
context:
space:
mode:
authorCaolán McNamara <caolanm@redhat.com>2014-12-18 17:39:07 +0000
committerCaolán McNamara <caolanm@redhat.com>2014-12-19 09:48:28 +0000
commit68d87e98951ae3ed5f7b863954667bfdd9805985 (patch)
treebf6de27eb413b6b58cb0d4f2b16182a87ac667d7 /vcl/source/edit/textundo.cxx
parent5214b96a10fed8147e5801f13bdc463e8ad0f430 (diff)
Resolves: fdo#86552 undo want to take ownership of nodes, but can't
Revert "fdo#75757 remove inheritance from std::vector" This reverts commit 63d8977f9fb0618d36dc8e0ee2f8068b1af92fe6. Change-Id: Idc9902a77ee2c1cb21b9e3b477b2d960772a022e
Diffstat (limited to 'vcl/source/edit/textundo.cxx')
-rw-r--r--vcl/source/edit/textundo.cxx8
1 files changed, 4 insertions, 4 deletions
diff --git a/vcl/source/edit/textundo.cxx b/vcl/source/edit/textundo.cxx
index 207bb1959df3..57a721ed2b33 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()->GetNode( mnPara );
+ mpNode = GetDoc()->GetNodes().GetObject( mnPara );
delete GetTEParaPortions()->GetObject( mnPara );
GetTEParaPortions()->Remove( mnPara );
// do not delete Node because of Undo!
- GetDoc()->RemoveNode( mnPara );
+ GetDoc()->GetNodes().Remove( mnPara );
GetTextEngine()->ImpParagraphRemoved( mnPara );
mbDelObject = true; // belongs again to the Undo
- sal_uLong nParas = GetDoc()->CountNodes();
+ sal_uLong nParas = GetDoc()->GetNodes().Count();
sal_uLong n = mnPara < nParas ? mnPara : (nParas-1);
- TextNode* pN = GetDoc()->GetNode( n );
+ TextNode* pN = GetDoc()->GetNodes().GetObject( n );
TextPaM aPaM( n, pN->GetText().getLength() );
SetSelection( aPaM );
}