pango/opentype/ftxgsub.c (Lookup_ChainContextSubst3) Fix problems where

Mon Aug 25 10:17:21 2003  Owen Taylor  <otaylor@redhat.com>

        * pango/opentype/ftxgsub.c (Lookup_ChainContextSubst3)
        * pango/opentype/ftxgpos.c (Lookup_ChainContextPos3):
        Fix problems where the coverage wasn't being checked
        for the first input glyph. (#118639, Kailash C. Chowksey)
This commit is contained in:
Owen Taylor 2003-08-25 14:30:12 +00:00 committed by Owen Taylor
parent bcf81bcc80
commit c99259bf7e
2 changed files with 6 additions and 8 deletions

View File

@ -5646,11 +5646,10 @@
s_in = &in->string[curr_pos]; s_in = &in->string[curr_pos];
ic = ccpf3->InputCoverage; ic = ccpf3->InputCoverage;
/* Start at 1 because [0] is implied */ for ( i = 0, j = 0; i < igc; i++, j++ )
for ( i = 1, j = 1; i < igc; i++, j++ )
{ {
while ( CHECK_Property( gdef, s_in[j], flags, &property ) ) /* We already called CHECK_Property for s_in[0] */
while ( j > 0 && CHECK_Property( gdef, s_in[j], flags, &property ) )
{ {
if ( error && error != TTO_Err_Not_Covered ) if ( error && error != TTO_Err_Not_Covered )
return error; return error;

View File

@ -3811,11 +3811,10 @@
s_in = &in->string[curr_pos]; s_in = &in->string[curr_pos];
ic = ccsf3->InputCoverage; ic = ccsf3->InputCoverage;
/* Start at 1 because [0] is implied */ for ( i = 0, j = 0; i < igc; i++, j++ )
for ( i = 1, j = 1; i < igc; i++, j++ )
{ {
while ( CHECK_Property( gdef, s_in[j], flags, &property ) ) /* We already called CHECK_Property for s_in[0] */
while ( j > 0 && CHECK_Property( gdef, s_in[j], flags, &property ) )
{ {
if ( error && error != TTO_Err_Not_Covered ) if ( error && error != TTO_Err_Not_Covered )
return error; return error;