diff options
author | Matteo Casalin <matteo.casalin@yahoo.com> | 2015-08-15 15:14:47 +0200 |
---|---|---|
committer | Matteo Casalin <matteo.casalin@yahoo.com> | 2015-08-16 09:10:20 +0200 |
commit | 8353793c94416a9a3a5af074d881624e43e5ec2f (patch) | |
tree | 17f6e377b489ccf6439484371d4212e9afe734cd /vcl/source/edit/texteng.cxx | |
parent | 9d0f86326cbf6b986176c5b5fe7660fa510c8d70 (diff) |
Use constants instead of (possibly wrong) magic numbers
Change-Id: I0829d271337b9fe77341c62a1c2ef4d6ae62c727
Diffstat (limited to 'vcl/source/edit/texteng.cxx')
-rw-r--r-- | vcl/source/edit/texteng.cxx | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/vcl/source/edit/texteng.cxx b/vcl/source/edit/texteng.cxx index ef5455cd2983..e1df6d898274 100644 --- a/vcl/source/edit/texteng.cxx +++ b/vcl/source/edit/texteng.cxx @@ -2707,7 +2707,7 @@ void TextEngine::ValidatePaM( TextPaM& rPaM ) const if ( rPaM.GetPara() >= nParas ) { rPaM.GetPara() = nParas ? nParas-1 : 0; - rPaM.GetIndex() = 0xFFFF; + rPaM.GetIndex() = TEXT_INDEX_ALL; } const sal_Int32 nMaxIndex = GetTextLen( rPaM.GetPara() ); |