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/headless/svptext.cxx | |
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/headless/svptext.cxx')
-rw-r--r-- | vcl/headless/svptext.cxx | 2 |
1 files changed, 0 insertions, 2 deletions
diff --git a/vcl/headless/svptext.cxx b/vcl/headless/svptext.cxx index 988e4760ef77..26abf384ab44 100644 --- a/vcl/headless/svptext.cxx +++ b/vcl/headless/svptext.cxx @@ -342,8 +342,6 @@ void SvpSalGraphics::GetDevFontList( ImplDevFontList* pDevFontList ) // 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 |