[Libreoffice-commits] core.git: Branch 'libreoffice-4-1' - vcl/source

David Tardon dtardon at redhat.com
Thu Jun 20 07:18:23 PDT 2013


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

New commits:
commit 0a66aac248d69d7fc47f669b5757a52e0f06e38d
Author: David Tardon <dtardon at redhat.com>
Date:   Thu Jun 20 13:15:25 2013 +0200

    Revert "fdo#65132 compute font height correctly"
    
    Commit 22d23d52b0f65636df3a1cb8fada9bf7de77eb78 is the real fix.
    
    This reverts commit 3a6513047409b8e8f6295152b33385ad8ef93681.
    
    (cherry picked from commit 5f00be141d86e3eadddd554cd9d18ebe47d4d59b)
    
    Change-Id: I36ac1f64000c3a805289141c2c6dca0de78454d3
    Signed-off-by: David Tardon <dtardon at redhat.com>
    Reviewed-on: https://gerrit.libreoffice.org/4395
    Reviewed-by: Noel Power <noel.power at suse.com>
    Tested-by: Noel Power <noel.power at suse.com>

diff --git a/vcl/source/gdi/outdev3.cxx b/vcl/source/gdi/outdev3.cxx
index cf37e01..d5d019a 100644
--- a/vcl/source/gdi/outdev3.cxx
+++ b/vcl/source/gdi/outdev3.cxx
@@ -7084,7 +7084,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 ) ) );
+    aMetric.SetSize( PixelToLogic( Size( pMetric->mnWidth, pMetric->mnAscent+pMetric->mnDescent-pMetric->mnIntLeading ) ) );
     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