]> git.saurik.com Git - apple/icu.git/blobdiff - icuSources/layout/ClassDefinitionTables.cpp
ICU-461.18.tar.gz
[apple/icu.git] / icuSources / layout / ClassDefinitionTables.cpp
index d69aac0efe9efcf7d6af8f6611a7aad8b38237a8..471a2b3e1b26ff9cdca3cf78d0dfddba8e2352bc 100644 (file)
@@ -1,6 +1,6 @@
 /*
  *
 /*
  *
- * (C) Copyright IBM Corp. 1998-2004 - All Rights Reserved
+ * (C) Copyright IBM Corp. 1998-2010 - All Rights Reserved
  *
  */
 
  *
  */
 
@@ -68,7 +68,7 @@ le_int32 ClassDefFormat1Table::getGlyphClass(LEGlyphID glyphID) const
     TTGlyphID firstGlyph = SWAPW(startGlyph);
     TTGlyphID lastGlyph  = firstGlyph + SWAPW(glyphCount);
 
     TTGlyphID firstGlyph = SWAPW(startGlyph);
     TTGlyphID lastGlyph  = firstGlyph + SWAPW(glyphCount);
 
-    if (ttGlyphID > firstGlyph && ttGlyphID < lastGlyph) {
+    if (ttGlyphID >= firstGlyph && ttGlyphID < lastGlyph) {
         return SWAPW(classValueArray[ttGlyphID - firstGlyph]);
     }
 
         return SWAPW(classValueArray[ttGlyphID - firstGlyph]);
     }