Ignore out-of-bound error in MarkCommentRow

This commit is contained in:
Star Brilliant 2013-09-19 17:14:13 +08:00
parent 6f72961f54
commit 5c657a221f

View File

@ -55,8 +55,11 @@ def FindAlternativeRow(rows, c, height, bottomReserved):
def MarkCommentRow(rows, c, row): def MarkCommentRow(rows, c, row):
try:
for i in range(row, row+math.ceil(c[7])): for i in range(row, row+math.ceil(c[7])):
rows[c[4]][i] = c rows[c[4]][i] = c
except IndexError:
pass
def WriteComment(f, c, row, width, height, bottomReserved, fontsize, lifetime): def WriteComment(f, c, row, width, height, bottomReserved, fontsize, lifetime):