Skip to content

Commit 8082aba

Browse files
committed
* src/truetype/ttinterp.c (Ins_DELTAP): Flip if-else.
1 parent 7172bd1 commit 8082aba

File tree

1 file changed

+9
-5
lines changed

1 file changed

+9
-5
lines changed

src/truetype/ttinterp.c

Lines changed: 9 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -6517,7 +6517,15 @@
65176517
/* error. As a delta instruction doesn't change a glyph */
65186518
/* in great ways, this shouldn't be a problem. */
65196519

6520-
if ( !BOUNDS( A, exc->zp0.n_points ) )
6520+
if ( BOUNDS( A, exc->zp0.n_points ) )
6521+
{
6522+
if ( exc->pedantic_hinting )
6523+
{
6524+
exc->error = FT_THROW( Invalid_Reference );
6525+
return;
6526+
}
6527+
}
6528+
else
65216529
{
65226530
if ( ( B & 0xF0 ) == P )
65236531
{
@@ -6526,7 +6534,6 @@
65266534
B++;
65276535
B *= F;
65286536

6529-
65306537
#ifdef TT_SUPPORT_SUBPIXEL_HINTING_MINIMAL
65316538
/* See `ttinterp.h' for details on backward compatibility mode. */
65326539
if ( exc->backward_compatibility )
@@ -6541,9 +6548,6 @@
65416548
exc->func_move( exc, &exc->zp0, A, B );
65426549
}
65436550
}
6544-
else
6545-
if ( exc->pedantic_hinting )
6546-
exc->error = FT_THROW( Invalid_Reference );
65476551
}
65486552
}
65496553

0 commit comments

Comments
 (0)