summaryrefslogtreecommitdiff
path: root/Build/source/libs/graphite2/graphite2-src/src/Face.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'Build/source/libs/graphite2/graphite2-src/src/Face.cpp')
-rw-r--r--Build/source/libs/graphite2/graphite2-src/src/Face.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/Build/source/libs/graphite2/graphite2-src/src/Face.cpp b/Build/source/libs/graphite2/graphite2-src/src/Face.cpp
index 7aefdb98de0..e9b1b1c177c 100644
--- a/Build/source/libs/graphite2/graphite2-src/src/Face.cpp
+++ b/Build/source/libs/graphite2/graphite2-src/src/Face.cpp
@@ -238,7 +238,7 @@ uint16 Face::getGlyphMetric(uint16 gid, uint8 metric) const
case kgmetAscent : return m_ascent;
case kgmetDescent : return m_descent;
default:
- if (gid > glyphs().numGlyphs()) return 0;
+ if (gid >= glyphs().numGlyphs()) return 0;
return glyphs().glyph(gid)->getMetric(metric);
}
}