summaryrefslogtreecommitdiff
path: root/i18npool
diff options
context:
space:
mode:
authorCaolán McNamara <caolanm@redhat.com>2017-04-06 09:29:39 +0100
committerCaolán McNamara <caolanm@redhat.com>2017-04-06 11:42:07 +0100
commit65753b9713ae798804da078dd4e9ed3e478e5264 (patch)
treeada30cf0b40fe589c3adf387ceef49648eec0261 /i18npool
parent655d1f35d745fcd372dad723252f5104789963a7 (diff)
scriptclass for codepoint 0 is WEAK
getScriptClass returns the cached nRet if new char equals old char old char is initialized to 0, so nRet should be initialized to the script class 0 would map to, which is WEAK (1), not 0 Change-Id: I30a8388d7c91e786c88deee781a7e2f80f219207
Diffstat (limited to 'i18npool')
-rw-r--r--i18npool/source/breakiterator/breakiteratorImpl.cxx2
1 files changed, 1 insertions, 1 deletions
diff --git a/i18npool/source/breakiterator/breakiteratorImpl.cxx b/i18npool/source/breakiterator/breakiteratorImpl.cxx
index 25e3f367ac98..2c4971562a7b 100644
--- a/i18npool/source/breakiterator/breakiteratorImpl.cxx
+++ b/i18npool/source/breakiterator/breakiteratorImpl.cxx
@@ -509,7 +509,7 @@ bool getCompatibilityScriptClassByBlock(sal_uInt32 currentChar, sal_Int16 &rScri
sal_Int16 BreakIteratorImpl::getScriptClass(sal_uInt32 currentChar)
{
static sal_uInt32 lastChar = 0;
- static sal_Int16 nRet = 0;
+ static sal_Int16 nRet = ScriptType::WEAK;
if (currentChar != lastChar)
{