diff options
author | Caolán McNamara <caolanm@redhat.com> | 2014-01-13 18:36:07 +0000 |
---|---|---|
committer | Caolán McNamara <caolanm@redhat.com> | 2014-01-13 20:35:20 +0000 |
commit | 32e0518a9859c860f91f2d0d5a3ef74f34952b50 (patch) | |
tree | 5de0988069f9168c260486839eba510c6d00b7ec /extensions | |
parent | d4f94182cbc7f1499b692a35cabaa405dfd3a079 (diff) |
GetCharPos returns EDIT_NOLIMIT on failure
Change-Id: Ie65526e66a71561aa64ed3517097d1274ffe7db4
Diffstat (limited to 'extensions')
-rw-r--r-- | extensions/source/propctrlr/standardcontrol.cxx | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/extensions/source/propctrlr/standardcontrol.cxx b/extensions/source/propctrlr/standardcontrol.cxx index 291472d6f0fa..ced964c690e0 100644 --- a/extensions/source/propctrlr/standardcontrol.cxx +++ b/extensions/source/propctrlr/standardcontrol.cxx @@ -385,7 +385,7 @@ namespace pcr bool HyperlinkInput::impl_textHitTest( const ::Point& _rWindowPos ) { sal_Int32 nPos = GetCharPos( _rWindowPos ); - return ( ( nPos != STRING_LEN ) && ( nPos < GetText().getLength() ) ); + return ( ( nPos != EDIT_NOLIMIT ) && ( nPos < GetText().getLength() ) ); } //-------------------------------------------------------------------- |