incubator-ooo-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From h..@apache.org
Subject svn commit: r1177551 - /incubator/ooo/trunk/main/vcl/source/gdi/outdev3.cxx
Date Fri, 30 Sep 2011 08:12:08 GMT
Author: hdu
Date: Fri Sep 30 08:12:07 2011
New Revision: 1177551

URL: http://svn.apache.org/viewvc?rev=1177551&view=rev
Log:
initialize slant properly in ImplFontMetricData constructor (author=iorsh)

Modified:
    incubator/ooo/trunk/main/vcl/source/gdi/outdev3.cxx

Modified: incubator/ooo/trunk/main/vcl/source/gdi/outdev3.cxx
URL: http://svn.apache.org/viewvc/incubator/ooo/trunk/main/vcl/source/gdi/outdev3.cxx?rev=1177551&r1=1177550&r2=1177551&view=diff
==============================================================================
--- incubator/ooo/trunk/main/vcl/source/gdi/outdev3.cxx (original)
+++ incubator/ooo/trunk/main/vcl/source/gdi/outdev3.cxx Fri Sep 30 08:12:07 2011
@@ -3301,6 +3301,7 @@ ImplFontMetricData::ImplFontMetricData( 
 {
 	// initialize the members provided by the font request
     mnWidth        = rFontSelData.mnWidth;
+    mnSlant        = rFontSelData.GetSlant();
     mnOrientation  = sal::static_int_cast<short>(rFontSelData.mnOrientation);
 
 	// intialize the used font name 
@@ -3325,7 +3326,6 @@ ImplFontMetricData::ImplFontMetricData( 
     mnDescent      = 0;
     mnIntLeading   = 0;
     mnExtLeading   = 0;
-    mnSlant        = 0;
     mnMinKashida   = 0;
 
     // reset metrics that are usually derived from the measurements



Mime
View raw message