basic/source/runtime/runtime.cxx | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-)
New commits: commit 86801fd5c1c0b02587ffb3082f4db63e7ef720ba Author: Arnaud Versini <[email protected]> Date: Sun Dec 4 19:58:38 2016 +0100 basic : Make NeedEsc easier to read Change-Id: Ie2ee404a51262cd08673268169a41255abf012bd Reviewed-on: https://gerrit.libreoffice.org/31600 Tested-by: Jenkins <[email protected]> Reviewed-by: Noel Grandin <[email protected]> diff --git a/basic/source/runtime/runtime.cxx b/basic/source/runtime/runtime.cxx index 030a75f..64a286e 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 '^': _______________________________________________ Libreoffice-commits mailing list [email protected] https://lists.freedesktop.org/mailman/listinfo/libreoffice-commits
