summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDavid Tardon <dtardon@redhat.com>2013-06-12 11:33:41 +0200
committerDavid Tardon <dtardon@redhat.com>2013-06-12 12:27:39 +0200
commit3a6513047409b8e8f6295152b33385ad8ef93681 (patch)
tree358c518a1f57f035fb620d5eee1f82e73afc9ed1
parentb742188982e76ed6d0c7d8de6275a18d8103b395 (diff)
fdo#65132 compute font height correctly
Change-Id: I8da66b102a554c9d5d275ff46e40dd707199d4f4
-rw-r--r--vcl/source/gdi/outdev3.cxx2
1 files changed, 1 insertions, 1 deletions
diff --git a/vcl/source/gdi/outdev3.cxx b/vcl/source/gdi/outdev3.cxx
index 8338d9f8181b..ec55ff124dce 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() );