You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@openoffice.apache.org by ks...@apache.org on 2015/08/24 23:04:11 UTC

svn commit: r1697501 - /openoffice/trunk/main/sw/source/core/text/itrcrsr.cxx

Author: kschenk
Date: Mon Aug 24 21:04:11 2015
New Revision: 1697501

URL: http://svn.apache.org/r1697501
Log:
#i126476# Patch by: Mark Hung


Modified:
    openoffice/trunk/main/sw/source/core/text/itrcrsr.cxx

Modified: openoffice/trunk/main/sw/source/core/text/itrcrsr.cxx
URL: http://svn.apache.org/viewvc/openoffice/trunk/main/sw/source/core/text/itrcrsr.cxx?rev=1697501&r1=1697500&r2=1697501&view=diff
==============================================================================
--- openoffice/trunk/main/sw/source/core/text/itrcrsr.cxx (original)
+++ openoffice/trunk/main/sw/source/core/text/itrcrsr.cxx Mon Aug 24 21:04:11 2015
@@ -56,6 +56,7 @@
 // --> OD 2010-05-05 #i111284#
 #include <numrule.hxx>
 // <--
+#include <com/sun/star/i18n/ScriptType.hpp>
 
 // Nicht reentrant !!!
 // wird in GetCharRect gesetzt und im UnitUp/Down ausgewertet.
@@ -267,6 +268,9 @@ void SwTxtMargin::CtorInitTxtMargin( SwT
 			rSpace.IsAutoFirst() )
 		{
 			nFirstLineOfs = GetFnt()->GetSize( GetFnt()->GetActual() ).Height();
+                        LanguageType aLang = pNode->GetLang( 0, 1, i18n::ScriptType::ASIAN);
+                        if (aLang != LANGUAGE_KOREAN && aLang != LANGUAGE_JAPANESE)
+                            nFirstLineOfs<<=1;
 			const SvxLineSpacingItem *pSpace = aLineInf.GetLineSpacing();
 			if( pSpace )
 			{