diff options
author | Christof Pintaske <cp@openoffice.org> | 2001-08-28 08:56:56 +0000 |
---|---|---|
committer | Christof Pintaske <cp@openoffice.org> | 2001-08-28 08:56:56 +0000 |
commit | 124896aba1cdd045d3f85ede4d0739a8dcfa7db8 (patch) | |
tree | 07c6eef8e55bd03bbbf23ee903139c6fecb2eb40 /psprint | |
parent | 9398d069e1cc9103b9abdf1261d4231e5a07fbb2 (diff) |
#89352# reencoding of printer resident fonts is off-by-one on Linux
Diffstat (limited to 'psprint')
-rw-r--r-- | psprint/source/printergfx/glyphset.cxx | 11 |
1 files changed, 7 insertions, 4 deletions
diff --git a/psprint/source/printergfx/glyphset.cxx b/psprint/source/printergfx/glyphset.cxx index 81f85c0b43c4..6e5b9d1e1ec6 100644 --- a/psprint/source/printergfx/glyphset.cxx +++ b/psprint/source/printergfx/glyphset.cxx @@ -2,9 +2,9 @@ * * $RCSfile: glyphset.cxx,v $ * - * $Revision: 1.4 $ + * $Revision: 1.5 $ * - * last change: $Author: cp $ $Date: 2001-08-27 11:03:18 $ + * last change: $Author: cp $ $Date: 2001-08-28 09:56:56 $ * * The Contents of this file are made available subject to the terms of * either of the following licenses @@ -260,7 +260,10 @@ GlyphSet::AddGlyphID (sal_Unicode nChar, { // other chars are just appended to the list glyph_mapping_t& aGlyphSet = maGlyphList.back(); - aGlyphSet [nChar] = aGlyphSet.size(); + + int nSize = aGlyphSet.size(); + + aGlyphSet [nChar] = nSize; *nOutGlyphSetID = maGlyphList.size(); *nOutGlyphID = aGlyphSet [nChar]; } @@ -456,7 +459,7 @@ GlyphSet::PSUploadEncoding(osl::File* pOutFile, PrinterGfx &rGfx) pEncodingVector + nSize); nSize += psp::appendStr (GetGlyphSetEncodingName(nGlyphSetID), pEncodingVector + nSize); - nSize += psp::appendStr (" [ /.notdef ", + nSize += psp::appendStr (" [ ", pEncodingVector + nSize); // need a list of glyphs, sorted by glyphid |