whoops, lastIndex can't be smaller than 1
git-svn-id: svn://svn.code.sf.net/p/fonttools/code/trunk@182 4cde692c-a291-49d1-8350-778aa11640f8
This commit is contained in:
parent
8eb9992fb7
commit
1288f8ad41
@ -52,8 +52,9 @@ class table__h_m_t_x(DefaultTable.DefaultTable):
|
|||||||
lastIndex = len(metrics)
|
lastIndex = len(metrics)
|
||||||
while metrics[lastIndex-2][0] == lastAdvance:
|
while metrics[lastIndex-2][0] == lastAdvance:
|
||||||
lastIndex = lastIndex - 1
|
lastIndex = lastIndex - 1
|
||||||
if lastIndex == 0:
|
if lastIndex <= 1:
|
||||||
# all advances are equal
|
# all advances are equal
|
||||||
|
lastIndex = 1
|
||||||
break
|
break
|
||||||
additionalMetrics = metrics[lastIndex:]
|
additionalMetrics = metrics[lastIndex:]
|
||||||
additionalMetrics = map(lambda (advance, sb): sb, additionalMetrics)
|
additionalMetrics = map(lambda (advance, sb): sb, additionalMetrics)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user