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

Chris Sherlock chris.sherlock79 at gmail.com
Tue Dec 23 07:22:10 PST 2014


 vcl/source/outdev/font.cxx |    1 -
 1 file changed, 1 deletion(-)

New commits:
commit a7f76a197900e7ece5d09fed2bf7920a42425e9c
Author: Chris Sherlock <chris.sherlock79 at gmail.com>
Date:   Wed Dec 24 00:31:45 2014 +1100

    vcl: fdo#87510 regression in GetFontMetric
    
    Unfortunately when I refactored the code some time ago in commit 588bb542bebd
    I forgot to remove the original assignment to mnExtLeading. This fixes this issue.
    
    Change-Id: I9ef514c1a28ec72747fed865a47c41a1193ce1b9
    Reviewed-on: https://gerrit.libreoffice.org/13628
    Reviewed-by: Matthew Francis <mjay.francis at gmail.com>
    Tested-by: Matthew Francis <mjay.francis at gmail.com>

diff --git a/vcl/source/outdev/font.cxx b/vcl/source/outdev/font.cxx
index 7d142e04..b7d044c 100644
--- a/vcl/source/outdev/font.cxx
+++ b/vcl/source/outdev/font.cxx
@@ -197,7 +197,6 @@ FontMetric OutputDevice::GetFontMetric() const
     aMetric.mpImplMetric->mnDescent     = ImplDevicePixelToLogicHeight( pMetric->mnDescent+mnEmphasisDescent );
     aMetric.mpImplMetric->mnIntLeading  = ImplDevicePixelToLogicHeight( pMetric->mnIntLeading+mnEmphasisAscent );
     aMetric.mpImplMetric->mnExtLeading  = ImplDevicePixelToLogicHeight( GetFontExtLeading() );
-    aMetric.mpImplMetric->mnExtLeading  = ImplDevicePixelToLogicHeight( pMetric->mnExtLeading );
     aMetric.mpImplMetric->mnLineHeight  = ImplDevicePixelToLogicHeight( pMetric->mnAscent+pMetric->mnDescent+mnEmphasisAscent+mnEmphasisDescent );
     aMetric.mpImplMetric->mnSlant       = ImplDevicePixelToLogicHeight( pMetric->mnSlant );
 


More information about the Libreoffice-commits mailing list