diff options
-rw-r--r-- | basic/source/runtime/runtime.cxx | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/basic/source/runtime/runtime.cxx b/basic/source/runtime/runtime.cxx index 030a75f39986..64a286eb3d3e 100644 --- a/basic/source/runtime/runtime.cxx +++ b/basic/source/runtime/runtime.cxx @@ -1400,11 +1400,11 @@ namespace { bool NeedEsc(sal_Unicode cCode) { - if((cCode & 0xFF80)) + if(!rtl::isAscii(cCode)) { return false; } - switch((sal_uInt8)(cCode & 0x07F)) + switch(cCode) { case '.': case '^': |