summaryrefslogtreecommitdiff
path: root/vcl/generic/print
diff options
context:
space:
mode:
authorCaolán McNamara <caolanm@redhat.com>2012-01-11 10:08:03 +0000
committerCaolán McNamara <caolanm@redhat.com>2012-01-11 14:13:31 +0000
commit7c3545a13809ba47079bab9c89c62546b14cfa72 (patch)
tree46a59ca7581b5c9c3621eaa0fbd0735bbeb24db9 /vcl/generic/print
parent67ddbfa97c567568eae5d5f0abe4dff8d5704f25 (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/generic/print')
-rw-r--r--vcl/generic/print/glyphset.cxx2
1 files changed, 1 insertions, 1 deletions
diff --git a/vcl/generic/print/glyphset.cxx b/vcl/generic/print/glyphset.cxx
index 08815505fd85..3255e81ee621 100644
--- a/vcl/generic/print/glyphset.cxx
+++ b/vcl/generic/print/glyphset.cxx
@@ -847,7 +847,7 @@ GlyphSet::PSUploadFont (osl::File& rOutFile, PrinterGfx &rGfx, bool bAllowType42
TrueTypeFont *pTTFont;
OString aTTFileName (rGfx.GetFontMgr().getFontFileSysPath(mnFontID));
int nFace = rGfx.GetFontMgr().getFontFaceNumber(mnFontID);
- sal_Int32 nSuccess = OpenTTFontFile(aTTFileName.getStr(), nFace < 0 ? 0 : nFace, &pTTFont);
+ sal_Int32 nSuccess = OpenTTFontFile(aTTFileName.getStr(), nFace, &pTTFont);
if (nSuccess != SF_OK)
return sal_False;
FILE* pTmpFile = tmpfile();