diff options
Diffstat (limited to 'basctl')
-rw-r--r-- | basctl/source/basicide/baside2b.cxx | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/basctl/source/basicide/baside2b.cxx b/basctl/source/basicide/baside2b.cxx index 28df6b14ccea..e6cf7b1b0c0e 100644 --- a/basctl/source/basicide/baside2b.cxx +++ b/basctl/source/basicide/baside2b.cxx @@ -60,6 +60,7 @@ #include <com/sun/star/script/XLibraryContainer2.hpp> #include <comphelper/processfactory.hxx> +#include <comphelper/string.hxx> using namespace ::com::sun::star; @@ -268,7 +269,7 @@ void EditorWindow::RequestHelp( const HelpEvent& rHEvt ) TextPaM aCursor = GetEditView()->GetTextEngine()->GetPaM( aDocPos, sal_False ); TextPaM aStartOfWord; String aWord = GetEditView()->GetTextEngine()->GetWord( aCursor, &aStartOfWord ); - if ( aWord.Len() && !ByteString( aWord, RTL_TEXTENCODING_UTF8 ).IsNumericAscii() ) + if ( aWord.Len() && !comphelper::string::isAsciiDecimalString(aWord) ) { sal_uInt16 nLastChar =aWord.Len()-1; if ( strchr( cSuffixes, aWord.GetChar( nLastChar ) ) ) |