summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorSimon Hausmann <shausman@rhea.troll.no>2007-02-26 12:13:19 +0100
committerSimon Hausmann <shausman@rhea.troll.no>2007-03-28 12:52:34 +0200
commit10c5b82bbbeffdbf9c1c586a20a3894e492fb7c9 (patch)
tree85d4751d7bab5b3d938e02c429e28cc436097bf0 /src
parentdc5342aada4ccceab4fa1f39c916b825e0247f2a (diff)
Don't crash if the getPointInOutline callback isn't set
Diffstat (limited to 'src')
-rw-r--r--src/harfbuzz-gpos.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/harfbuzz-gpos.c b/src/harfbuzz-gpos.c
index 6b65113..3f485e9 100644
--- a/src/harfbuzz-gpos.c
+++ b/src/harfbuzz-gpos.c
@@ -714,6 +714,8 @@ static HB_Error Get_Anchor( GPOS_Instance* gpi,
{
uint32_t n_points = 0;
ap = an->af.af2.AnchorPoint;
+ if (!gpi->font->klass->getPointInOutline)
+ goto no_contour_point;
error = gpi->font->klass->getPointInOutline(gpi->font, glyph_index, gpi->load_flags, ap, x_value, y_value, &n_points);
if (error)
return error;