[Libreoffice-commits] core.git: vcl/source

David Tardon dtardon at redhat.com
Wed Jun 12 03:28:37 PDT 2013


 vcl/source/gdi/outdev3.cxx |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

New commits:
commit 3a6513047409b8e8f6295152b33385ad8ef93681
Author: David Tardon <dtardon at redhat.com>
Date:   Wed Jun 12 11:33:41 2013 +0200

    fdo#65132 compute font height correctly
    
    Change-Id: I8da66b102a554c9d5d275ff46e40dd707199d4f4

diff --git a/vcl/source/gdi/outdev3.cxx b/vcl/source/gdi/outdev3.cxx
index 8338d9f..ec55ff1 100644
--- a/vcl/source/gdi/outdev3.cxx
+++ b/vcl/source/gdi/outdev3.cxx
@@ -7082,7 +7082,7 @@ FontMetric OutputDevice::GetFontMetric() const
     // set aMetric with info from font
     aMetric.SetName( maFont.GetName() );
     aMetric.SetStyleName( pMetric->GetStyleName() );
-    aMetric.SetSize( PixelToLogic( Size( pMetric->mnWidth, pMetric->mnAscent+pMetric->mnDescent-pMetric->mnIntLeading ) ) );
+    aMetric.SetSize( PixelToLogic( Size( pMetric->mnWidth, pMetric->mnAscent+pMetric->mnDescent ) ) );
     aMetric.SetCharSet( pMetric->IsSymbolFont() ? RTL_TEXTENCODING_SYMBOL : RTL_TEXTENCODING_UNICODE );
     aMetric.SetFamily( pMetric->GetFamilyType() );
     aMetric.SetPitch( pMetric->GetPitch() );


More information about the Libreoffice-commits mailing list