From 63f6dfac3850f76bc8d55f3fe00b9488acd7d533 Mon Sep 17 00:00:00 2001 From: James Larcombe Date: Fri, 6 Aug 2010 15:17:20 +0100 Subject: [PATCH] Use correct glyph names when embedding fonts in EPS files. --- src/gui/text/qfontsubset.cpp | 4 ++-- 1 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/gui/text/qfontsubset.cpp b/src/gui/text/qfontsubset.cpp index e49f5b4..ef9e448 100644 --- a/src/gui/text/qfontsubset.cpp +++ b/src/gui/text/qfontsubset.cpp @@ -342,8 +342,8 @@ QByteArray QFontSubset::glyphName(unsigned int glyph, const QVector reverse s << '/' << glyphName(uc, false /* ### */); } else #endif - if (reverseMap[glyphIndex] && reverseMap[glyphIndex] < 0x10000) { - s << '/' << glyphName(reverseMap[glyphIndex], false); + if (reverseMap[glyph] && reverseMap[glyph] < 0x10000) { + s << '/' << glyphName(reverseMap[glyph], false); } else { s << "/gl" << (int)glyphIndex; } -- 1.7.0.2.msysgit.0