diff options
author | Caolán McNamara <caolanm@redhat.com> | 2014-01-12 20:27:35 +0000 |
---|---|---|
committer | Caolán McNamara <caolanm@redhat.com> | 2014-01-13 09:50:10 +0000 |
commit | 2a44ab09d744dd719a26f6ddab0e45473176414d (patch) | |
tree | 1d2d820fcd7afbd58ca77ea609ec6776f948047e | |
parent | 9ceccaaa4d7d475c7d5d0800805ac94c5a965765 (diff) |
longparas: STRING_LEN->EDIT_NOLIMIT
Change-Id: I4ca1875bf4afa228c1617b4590a3a56f71de57c8
-rw-r--r-- | vcl/source/control/edit.cxx | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/vcl/source/control/edit.cxx b/vcl/source/control/edit.cxx index dcf15199d7d9..d260b078f708 100644 --- a/vcl/source/control/edit.cxx +++ b/vcl/source/control/edit.cxx @@ -1283,7 +1283,7 @@ void Edit::ImplAlignAndPaint() sal_Int32 Edit::ImplGetCharPos( const Point& rWindowPos ) const { - sal_Int32 nIndex = STRING_LEN; + sal_Int32 nIndex = EDIT_NOLIMIT; OUString aText = ImplGetText(); sal_Int32 nDXBuffer[256]; @@ -1316,7 +1316,7 @@ sal_Int32 Edit::ImplGetCharPos( const Point& rWindowPos ) const break; } } - if( nIndex == STRING_LEN ) + if( nIndex == EDIT_NOLIMIT ) { nIndex = 0; long nDiff = std::abs( pDX[0]-nX ); @@ -1331,7 +1331,7 @@ sal_Int32 Edit::ImplGetCharPos( const Point& rWindowPos ) const } } if( nIndex == aText.getLength()-1 && std::abs( pDX[2*nIndex+1] - nX ) < nDiff ) - nIndex = STRING_LEN; + nIndex = EDIT_NOLIMIT; } if( pDXBuffer ) @@ -1437,7 +1437,7 @@ void Edit::MouseButtonDown( const MouseEvent& rMEvt ) mbClickedInSelection = sal_False; if ( rMEvt.GetClicks() == 3 ) { - ImplSetSelection( Selection( 0, STRING_LEN ) ); + ImplSetSelection( Selection( 0, EDIT_NOLIMIT) ); ImplCopyToSelectionClipboard(); } @@ -1713,7 +1713,7 @@ sal_Bool Edit::ImplHandleKeyEvent( const KeyEvent& rKEvt ) } else if ( bGoEnd ) { - aSel.Max() = STRING_LEN; + aSel.Max() = EDIT_NOLIMIT; } if ( !bSelect ) |