提交 181a0fbb 编写于 作者: B bae

7124223: [macosx] Regression test failure with new exception, when glyph is positioned explicitly

Reviewed-by: jgodinez
上级 5755cf71
...@@ -1025,7 +1025,8 @@ public abstract class PathGraphics extends ProxyGraphics2D { ...@@ -1025,7 +1025,8 @@ public abstract class PathGraphics extends ProxyGraphics2D {
continue; continue;
} }
glyph = font2D.charToGlyph(c); glyph = font2D.charToGlyph(c);
if (glyph != missingGlyph && glyph < numGlyphs && if (glyph != missingGlyph &&
glyph >= 0 && glyph < numGlyphs &&
(glyphToCharMap[glyph] == (glyphToCharMap[glyph] ==
CharToGlyphMapper.INVISIBLE_GLYPH_ID)) { CharToGlyphMapper.INVISIBLE_GLYPH_ID)) {
glyphToCharMap[glyph] = c; glyphToCharMap[glyph] = c;
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册