jdk/src/share/native/sun/font/layout/ClassDefinitionTables.cpp
changeset 7486 6a36b1ebc620
parent 5506 202f599c92aa
child 16891 91e99bed64ae
equal deleted inserted replaced
7485:e9e65ce0013a 7486:6a36b1ebc620
    91 {
    91 {
    92     TTGlyphID ttGlyphID  = (TTGlyphID) LE_GET_GLYPH(glyphID);
    92     TTGlyphID ttGlyphID  = (TTGlyphID) LE_GET_GLYPH(glyphID);
    93     TTGlyphID firstGlyph = SWAPW(startGlyph);
    93     TTGlyphID firstGlyph = SWAPW(startGlyph);
    94     TTGlyphID lastGlyph  = firstGlyph + SWAPW(glyphCount);
    94     TTGlyphID lastGlyph  = firstGlyph + SWAPW(glyphCount);
    95 
    95 
    96     if (ttGlyphID > firstGlyph && ttGlyphID < lastGlyph) {
    96     if (ttGlyphID >= firstGlyph && ttGlyphID < lastGlyph) {
    97         return SWAPW(classValueArray[ttGlyphID - firstGlyph]);
    97         return SWAPW(classValueArray[ttGlyphID - firstGlyph]);
    98     }
    98     }
    99 
    99 
   100     return 0;
   100     return 0;
   101 }
   101 }