summaryrefslogtreecommitdiff
path: root/vcl/source/edit/textundo.cxx
diff options
context:
space:
mode:
Diffstat (limited to 'vcl/source/edit/textundo.cxx')
-rw-r--r--vcl/source/edit/textundo.cxx4
1 files changed, 2 insertions, 2 deletions
diff --git a/vcl/source/edit/textundo.cxx b/vcl/source/edit/textundo.cxx
index 0e218af8a108..a59071c554d2 100644
--- a/vcl/source/edit/textundo.cxx
+++ b/vcl/source/edit/textundo.cxx
@@ -168,7 +168,7 @@ void TextUndoDelPara::Undo()
if ( GetView() )
{
- TextSelection aSel( TextPaM( mnPara, 0 ), TextPaM( mnPara, mpNode->GetText().Len() ) );
+ TextSelection aSel( TextPaM( mnPara, 0 ), TextPaM( mnPara, mpNode->GetText().getLength() ) );
SetSelection( aSel );
}
}
@@ -190,7 +190,7 @@ void TextUndoDelPara::Redo()
sal_uLong nParas = GetDoc()->GetNodes().Count();
sal_uLong n = mnPara < nParas ? mnPara : (nParas-1);
TextNode* pN = GetDoc()->GetNodes().GetObject( n );
- TextPaM aPaM( n, pN->GetText().Len() );
+ TextPaM aPaM( n, pN->GetText().getLength() );
SetSelection( aPaM );
}