* src/autofit/afgsub.c (af_map_lookup): Fix handling of lookup type 7.
Fixes issue #1356.
diff --git a/src/autofit/afgsub.c b/src/autofit/afgsub.c
index 6cc664e..386999d 100644
--- a/src/autofit/afgsub.c
+++ b/src/autofit/afgsub.c
@@ -649,6 +649,8 @@
{
FT_Error error;
+ FT_UInt real_lookupType = lookupType;
+
FT_Byte* subtable = table + FT_NEXT_USHORT( p );
@@ -657,11 +659,11 @@
FT_Byte* q = subtable + 2;
- lookupType = FT_NEXT_USHORT( q );
- subtable += FT_PEEK_ULONG( q );
+ real_lookupType = FT_NEXT_USHORT( q );
+ subtable += FT_PEEK_ULONG( q );
}
- if ( lookupType == 1 )
+ if ( real_lookupType == 1 )
{
FT_UInt format = FT_PEEK_USHORT( subtable );