提交 4d809696 编写于 作者: M Michiharu Ariza 提交者: Behdad Esfahbod

fix for issue #1447 (#1462)

Added case for OpCode_BaseFontName. This opcode in spec but practically unused.
Added a comment for default case which can't be hit
上级 1abd4fca
......@@ -656,7 +656,7 @@ struct NameDictValues
static inline enum NameDictValIndex name_op_to_index (OpCode op)
{
switch (op) {
default:
default: // can't happen - just make some compiler happy
case OpCode_version:
return version;
case OpCode_Notice:
......@@ -673,7 +673,9 @@ struct NameDictValues
return postscript;
case OpCode_FontName:
return fontName;
}
case OpCode_BaseFontName:
return baseFontName;
}
}
unsigned int values[ValCount];
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册