sw/source/ui/docvw/HeaderFooterWin.cxx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
New commits: commit c761fcfd7ec95090cde2fb2b6b9b891f3e1337ab Author: Khaled Hosny <khaledho...@eglug.org> Date: Mon May 20 15:58:47 2013 +0200 Fix fdo#64751 â Header & footer blue tags empty No idea FontMetric::GetHeight() is supposed to mean, probably the code here meant GetLineHeight(). What it actually need is GetAscent(), so use it instead (which is the same as GetLineHeight() - GetDescent()). Change-Id: Ic467e56ed6b8d245ac7800f94e6d40030833328b Reviewed-on: https://gerrit.libreoffice.org/3980 Reviewed-by: Fridrich Strba <fridr...@documentfoundation.org> Tested-by: Fridrich Strba <fridr...@documentfoundation.org> diff --git a/sw/source/ui/docvw/HeaderFooterWin.cxx b/sw/source/ui/docvw/HeaderFooterWin.cxx index 970e541..eb88d53 100644 --- a/sw/source/ui/docvw/HeaderFooterWin.cxx +++ b/sw/source/ui/docvw/HeaderFooterWin.cxx @@ -291,7 +291,7 @@ void SwHeaderFooterWin::Paint( const Rectangle& ) GetTextBoundRect( aTextRect, String( m_sLabel ) ); FontMetric aFontMetric = GetFontMetric( GetFont() ); - double nTextOffsetY = aFontMetric.GetHeight() - aFontMetric.GetDescent() + TEXT_PADDING; + double nTextOffsetY = aFontMetric.GetAscent() + TEXT_PADDING; Point aTextPos( TEXT_PADDING, nTextOffsetY ); basegfx::B2DHomMatrix aTextMatrix( createScaleTranslateB2DHomMatrix(
_______________________________________________ Libreoffice-commits mailing list libreoffice-comm...@lists.freedesktop.org http://lists.freedesktop.org/mailman/listinfo/libreoffice-commits