Use KernSubTableFormat2::rightClassTable
Issue originally reported at http://cppfiles.com/chromium.txt . This fixes what appears to be a copy - paste issue which causes both KernSubTableFormat2::rightClassTable and the 'right' argument to KernSubTableFormat2::get_kerning to go unused.
This commit is contained in:
parent
c41b7fc105
commit
85be365ed9
|
@ -115,7 +115,7 @@ struct KernSubTableFormat2
|
||||||
inline int get_kerning (hb_codepoint_t left, hb_codepoint_t right, const char *end) const
|
inline int get_kerning (hb_codepoint_t left, hb_codepoint_t right, const char *end) const
|
||||||
{
|
{
|
||||||
unsigned int l = (this+leftClassTable).get_class (left);
|
unsigned int l = (this+leftClassTable).get_class (left);
|
||||||
unsigned int r = (this+leftClassTable).get_class (left);
|
unsigned int r = (this+rightClassTable).get_class (right);
|
||||||
unsigned int offset = l * rowWidth + r * sizeof (FWORD);
|
unsigned int offset = l * rowWidth + r * sizeof (FWORD);
|
||||||
const FWORD *arr = &(this+array);
|
const FWORD *arr = &(this+array);
|
||||||
if (unlikely ((const void *) arr < (const void *) this || (const void *) arr >= (const void *) end))
|
if (unlikely ((const void *) arr < (const void *) this || (const void *) arr >= (const void *) end))
|
||||||
|
|
Loading…
Reference in New Issue