diff options
Diffstat (limited to 'sw/source/core/bastyp/breakit.cxx')
-rw-r--r-- | sw/source/core/bastyp/breakit.cxx | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/sw/source/core/bastyp/breakit.cxx b/sw/source/core/bastyp/breakit.cxx index 9fb1f98348fc..3427c483a04b 100644 --- a/sw/source/core/bastyp/breakit.cxx +++ b/sw/source/core/bastyp/breakit.cxx @@ -137,7 +137,8 @@ SvtScriptType SwBreakIt::GetAllScriptsOfText( const OUString& rText ) const for( sal_Int32 n = 0, nEnd = rText.getLength(); n < nEnd; n = m_xBreak->endOfScript(rText, n, nScript) ) { - switch( nScript = m_xBreak->getScriptType(rText, n) ) + nScript = m_xBreak->getScriptType(rText, n); + switch( nScript ) { case i18n::ScriptType::LATIN: nRet |= SvtScriptType::LATIN; break; case i18n::ScriptType::ASIAN: nRet |= SvtScriptType::ASIAN; break; |