diff --git a/cui/uiconfig/ui/asiantypography.ui b/cui/uiconfig/ui/asiantypography.ui index 55e41bec2eb6..fad6ecf9c977 100644 --- a/cui/uiconfig/ui/asiantypography.ui +++ b/cui/uiconfig/ui/asiantypography.ui @@ -54,7 +54,7 @@ - Apply spacing between Asian, Latin and complex text + Apply spacing between Asian and non-Asian text True True False diff --git a/sw/source/core/text/itrform2.cxx b/sw/source/core/text/itrform2.cxx index fd91902a920c..7fc2ae4005df 100644 --- a/sw/source/core/text/itrform2.cxx +++ b/sw/source/core/text/itrform2.cxx @@ -606,7 +606,9 @@ void SwTextFormatter::BuildPortions( SwTextFormatInfo &rInf ) // to 20% of the fontheight. sal_Int32 nTmp = rInf.GetIdx() + pPor->GetLen(); if( nTmp == m_pScriptInfo->NextScriptChg( nTmp - 1 ) && - nTmp != rInf.GetText().getLength() ) + nTmp != rInf.GetText().getLength() && + (m_pScriptInfo->ScriptType(nTmp - 1) == css::i18n::ScriptType::ASIAN || + m_pScriptInfo->ScriptType(nTmp) == css::i18n::ScriptType::ASIAN) ) { const sal_uInt16 nDist = static_cast(rInf.GetFont()->GetHeight()/5);