incubator-ooo-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From h..@apache.org
Subject svn commit: r1348861 - /incubator/ooo/trunk/main/filter/source/msfilter/escherex.cxx
Date Mon, 11 Jun 2012 14:22:05 GMT
Author: hdu
Date: Mon Jun 11 14:22:05 2012
New Revision: 1348861

URL: http://svn.apache.org/viewvc?rev=1348861&view=rev
Log:
#i119555# fix FontWork font size when saving to *.doc file

Patch by: Zuojun Chen
Found by: Lou Qingle
Review by: hdu

Modified:
    incubator/ooo/trunk/main/filter/source/msfilter/escherex.cxx

Modified: incubator/ooo/trunk/main/filter/source/msfilter/escherex.cxx
URL: http://svn.apache.org/viewvc/incubator/ooo/trunk/main/filter/source/msfilter/escherex.cxx?rev=1348861&r1=1348860&r2=1348861&view=diff
==============================================================================
--- incubator/ooo/trunk/main/filter/source/msfilter/escherex.cxx (original)
+++ incubator/ooo/trunk/main/filter/source/msfilter/escherex.cxx Mon Jun 11 14:22:05 2012
@@ -3063,6 +3063,15 @@ void EscherPropertyContainer::CreateCust
 									}
 								}
 							}
+							if ( EscherPropertyValueHelper::GetPropertyValue( aAny, aXPropSet, String( RTL_CONSTASCII_USTRINGPARAM(
"CharHeight" ) ), sal_True ) )
+							{
+								float fCharHeight = 0.0;
+								if ( aAny >>= fCharHeight )
+								{
+									sal_Int32 nTextSize = static_cast< sal_Int32 > ( fCharHeight * 65536 );
+									AddOpt(ESCHER_Prop_gtextSize, nTextSize);
+								}
+							}
 							if ( EscherPropertyValueHelper::GetPropertyValue( aAny, aXPropSet, String( RTL_CONSTASCII_USTRINGPARAM(
"CharKerning" ) ), sal_True ) )
 							{
 								sal_Int16 nCharKerning = sal_Int16();



Mime
View raw message