summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorCaolán McNamara <caolanm@redhat.com>2017-04-03 15:59:44 +0100
committerCaolán McNamara <caolanm@redhat.com>2017-04-03 16:05:20 +0100
commit9b3685789b83ad052eb61bd909e37804ed00b76f (patch)
tree2629957f1e9fec409067f385ee7cd612b1126b77
parent32dad6983f81583b233d3cddb7a9de39519aa77b (diff)
don't check on every loop
Change-Id: I000a887925db63b5717cc0d062d9da623415f7cc
-rw-r--r--sw/source/filter/ww8/ww8par.cxx6
1 files changed, 4 insertions, 2 deletions
diff --git a/sw/source/filter/ww8/ww8par.cxx b/sw/source/filter/ww8/ww8par.cxx
index eb75ce5f0413..3de315055bee 100644
--- a/sw/source/filter/ww8/ww8par.cxx
+++ b/sw/source/filter/ww8/ww8par.cxx
@@ -3116,9 +3116,11 @@ bool SwWW8ImplReader::ReadPlainChars(WW8_CP& rPos, sal_Int32 nEnd, sal_Int32 nCp
? Custom8BitToUnicode(hConverter, p8Bits, nL2, pBuffer, nStrLen)
: nL2;
- for( sal_Int32 nI = 0; nI < nStrLen; ++nI, ++pBuffer )
- if (m_bRegardHindiDigits && m_bBidi && LangUsesHindiNumbers(nCTLLang))
+ if (m_bRegardHindiDigits && m_bBidi && LangUsesHindiNumbers(nCTLLang))
+ {
+ for (sal_Int32 nI = 0; nI < nStrLen; ++nI, ++pBuffer)
*pBuffer = TranslateToHindiNumbers(*pBuffer);
+ }
pStr->buffer[nEndUsed] = 0;
pStr->length = nEndUsed;