summaryrefslogtreecommitdiff
path: root/vcl/unx/generic/gdi
diff options
context:
space:
mode:
authorKhaled Hosny <khaledhosny@eglug.org>2016-12-30 11:02:18 +0200
committerKhaled Hosny <khaledhosny@eglug.org>2016-12-30 11:52:00 +0000
commitf2a5e6dc8f9c79b31ca1044fac8caa0130205e3c (patch)
tree1271cebe997f5aa8aff40609f60e49e60faee92d /vcl/unx/generic/gdi
parentf28d9aaea39f9a2b50c6b9ae36c466771ab72a92 (diff)
Get rid of GlyphMetric class
All we need is Rectangle, so lets keep things simple. Change-Id: I8c47a9159696b52d22c327f257d5e4aa8898d871 Reviewed-on: https://gerrit.libreoffice.org/32506 Tested-by: Jenkins <ci@libreoffice.org> Reviewed-by: Khaled Hosny <khaledhosny@eglug.org>
Diffstat (limited to 'vcl/unx/generic/gdi')
-rw-r--r--vcl/unx/generic/gdi/cairotextrender.cxx3
1 files changed, 1 insertions, 2 deletions
diff --git a/vcl/unx/generic/gdi/cairotextrender.cxx b/vcl/unx/generic/gdi/cairotextrender.cxx
index b3f61657b7b6..842a6b643ed7 100644
--- a/vcl/unx/generic/gdi/cairotextrender.cxx
+++ b/vcl/unx/generic/gdi/cairotextrender.cxx
@@ -435,8 +435,7 @@ bool CairoTextRender::GetGlyphBoundRect(const GlyphItem& rGlyph, Rectangle& rRec
if( !pSF )
return false;
- const GlyphMetric& rGM = pSF->GetGlyphMetric(rGlyph);
- Rectangle aRect( rGM.GetOffset(), rGM.GetSize() );
+ Rectangle aRect = pSF->GetGlyphBoundRect(rGlyph);
if ( pSF->mnCos != 0x10000 && pSF->mnSin != 0 )
{