diff options
author | Caolán McNamara <caolanm@redhat.com> | 2012-01-11 10:08:03 +0000 |
---|---|---|
committer | Caolán McNamara <caolanm@redhat.com> | 2012-01-11 14:13:31 +0000 |
commit | 7c3545a13809ba47079bab9c89c62546b14cfa72 (patch) | |
tree | 46a59ca7581b5c9c3621eaa0fbd0735bbeb24db9 /vcl/unx/generic/gdi | |
parent | 67ddbfa97c567568eae5d5f0abe4dff8d5704f25 (diff) |
align getFontFaceNumber with FC_FACE
getFontFaceNumber returns the index of the font in the collection,
font formats without indexes are now "0" rather than -1. All
existing code already converted < 0 to 0 anyway, so simplifys a
little.
Diffstat (limited to 'vcl/unx/generic/gdi')
-rw-r--r-- | vcl/unx/generic/gdi/salgdi3.cxx | 4 |
1 files changed, 0 insertions, 4 deletions
diff --git a/vcl/unx/generic/gdi/salgdi3.cxx b/vcl/unx/generic/gdi/salgdi3.cxx index 1a496c43a1c4..b10b36248651 100644 --- a/vcl/unx/generic/gdi/salgdi3.cxx +++ b/vcl/unx/generic/gdi/salgdi3.cxx @@ -551,8 +551,6 @@ bool X11SalGraphics::AddTempDevFont( ImplDevFontList* pFontList, aDFA.mnQuality += 5800; int nFaceNum = rMgr.getFontFaceNumber( aInfo.m_nID ); - if( nFaceNum < 0 ) - nFaceNum = 0; GlyphCache& rGC = X11GlyphCache::GetInstance(); const rtl::OString& rFileName = rMgr.getFontFileSysPath( aInfo.m_nID ); @@ -587,8 +585,6 @@ void X11SalGraphics::GetDevFontList( ImplDevFontList *pList ) // normalize face number to the GlyphCache int nFaceNum = rMgr.getFontFaceNumber( aInfo.m_nID ); - if( nFaceNum < 0 ) - nFaceNum = 0; // for fonts where extra kerning info can be provided on demand // an ExtraKernInfo object is supplied |