From 99e60d840db667ec9f50e481572aa5df97d23836 Mon Sep 17 00:00:00 2001 From: Werner Lemberg Date: Mon, 10 Jun 2013 01:44:37 +0200 Subject: [PATCH] Fix Savannah bug #39160. * src/truetype/ttinterp.c (Ins_SDPVTL): Set projection vector too for the degenerate case. --- ChangeLog | 7 +++++++ src/truetype/ttinterp.c | 6 ++++++ 2 files changed, 13 insertions(+) diff --git a/ChangeLog b/ChangeLog index d85fde8ac..653ca4212 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,10 @@ +2013-06-10 Werner Lemberg + + Fix Savannah bug #39160. + + * src/truetype/ttinterp.c (Ins_SDPVTL): Set projection vector too + for the degenerate case. + 2013-06-09 David Turner * src/cache/ftcmanag.c (FTC_Manager_Reset): Add missing cache flush. diff --git a/src/truetype/ttinterp.c b/src/truetype/ttinterp.c index 47ceca1ef..798d4a9b3 100644 --- a/src/truetype/ttinterp.c +++ b/src/truetype/ttinterp.c @@ -5398,6 +5398,12 @@ A = v1->x - v2->x; B = v1->y - v2->y; + + if ( A == 0 && B == 0 ) + { + A = 0x4000; + aOpc = 0; + } } if ( ( aOpc & 1 ) != 0 )