diff options
author | LIU Sun-Liang <sunliang_liu@foxitsoftware.com> | 2011-01-30 16:29:45 +0100 |
---|---|---|
committer | Werner Lemberg <wl@gnu.org> | 2011-01-30 16:29:45 +0100 |
commit | c61b3596d4bb5487825b9fa031e219a08f8911f9 (patch) | |
tree | e280e767ae25dda355ff362660638d7a94b1ee33 /src | |
parent | 332da87d99947c47db93def43b50fdbe63a1bef6 (diff) |
[truetype]: Fix behaviour of MIAP for invalid arguments.
* src/truetype/ttinterp.c (Ins_MIAP): Set reference points even in
case of error.
Diffstat (limited to 'src')
-rw-r--r-- | src/truetype/ttinterp.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/truetype/ttinterp.c b/src/truetype/ttinterp.c index 2ae7a4d6..921f613d 100644 --- a/src/truetype/ttinterp.c +++ b/src/truetype/ttinterp.c @@ -5996,7 +5996,7 @@ { if ( CUR.pedantic_hinting ) CUR.error = TT_Err_Invalid_Reference; - return; + goto Fail; } /* XXX: UNDOCUMENTED! */ @@ -6042,6 +6042,7 @@ CUR_Func_move( &CUR.zp0, point, distance - org_dist ); + Fail: CUR.GS.rp0 = point; CUR.GS.rp1 = point; } |