summaryrefslogtreecommitdiff
path: root/vcl/source/edit/vclmedit.cxx
diff options
context:
space:
mode:
Diffstat (limited to 'vcl/source/edit/vclmedit.cxx')
-rw-r--r--vcl/source/edit/vclmedit.cxx9
1 files changed, 4 insertions, 5 deletions
diff --git a/vcl/source/edit/vclmedit.cxx b/vcl/source/edit/vclmedit.cxx
index f4b87780f1f8..6e18ae4883e1 100644
--- a/vcl/source/edit/vclmedit.cxx
+++ b/vcl/source/edit/vclmedit.cxx
@@ -580,8 +580,8 @@ void ImpVclMEdit::SetSelection( const Selection& rSelection )
long nEnd = std::max( aNewSelection.Min(), aNewSelection.Max() );
TextSelection aTextSel;
- sal_uLong nPara = 0;
- sal_uInt16 nChar = 0;
+ sal_uInt32 nPara = 0;
+ sal_Int32 nChar = 0;
sal_uInt16 x = 0;
while ( x <= nEnd )
{
@@ -611,8 +611,7 @@ const Selection& ImpVclMEdit::GetSelection() const
ExtTextEngine* pExtTextEngine = mpTextWindow->GetTextEngine();
// paragraphs before
- sal_uLong n;
- for ( n = 0; n < aTextSel.GetStart().GetPara(); n++ )
+ for ( sal_uInt32 n = 0; n < aTextSel.GetStart().GetPara(); ++n )
{
maSelection.Min() += pExtTextEngine->GetTextLen( n );
maSelection.Min()++;
@@ -622,7 +621,7 @@ const Selection& ImpVclMEdit::GetSelection() const
maSelection.Max() = maSelection.Min();
maSelection.Min() += aTextSel.GetStart().GetIndex();
- for ( n = aTextSel.GetStart().GetPara(); n < aTextSel.GetEnd().GetPara(); n++ )
+ for ( sal_uInt32 n = aTextSel.GetStart().GetPara(); n < aTextSel.GetEnd().GetPara(); ++n )
{
maSelection.Max() += pExtTextEngine->GetTextLen( n );
maSelection.Max()++;