summaryrefslogtreecommitdiff
path: root/forms/source/richtext
diff options
context:
space:
mode:
Diffstat (limited to 'forms/source/richtext')
-rw-r--r--forms/source/richtext/specialdispatchers.cxx4
1 files changed, 2 insertions, 2 deletions
diff --git a/forms/source/richtext/specialdispatchers.cxx b/forms/source/richtext/specialdispatchers.cxx
index 9f76f9973d8f..15c2c4242138 100644
--- a/forms/source/richtext/specialdispatchers.cxx
+++ b/forms/source/richtext/specialdispatchers.cxx
@@ -67,10 +67,10 @@ namespace frm
if ( !pEngine )
return;
- sal_uInt16 nParagraphs = pEngine->GetParagraphCount();
+ sal_Int32 nParagraphs = pEngine->GetParagraphCount();
if ( nParagraphs )
{
- sal_uInt16 nLastParaNumber = nParagraphs - 1;
+ sal_Int32 nLastParaNumber = nParagraphs - 1;
xub_StrLen nParaLen = pEngine->GetTextLen( nLastParaNumber );
getEditView()->SetSelection( ESelection( 0, 0, nLastParaNumber, nParaLen ) );
}