Ignore out-of-bound error in MarkCommentRow
This commit is contained in:
parent
6f72961f54
commit
5c657a221f
@ -55,8 +55,11 @@ def FindAlternativeRow(rows, c, height, bottomReserved):
|
||||
|
||||
|
||||
def MarkCommentRow(rows, c, row):
|
||||
for i in range(row, row+math.ceil(c[7])):
|
||||
rows[c[4]][i] = c
|
||||
try:
|
||||
for i in range(row, row+math.ceil(c[7])):
|
||||
rows[c[4]][i] = c
|
||||
except IndexError:
|
||||
pass
|
||||
|
||||
|
||||
def WriteComment(f, c, row, width, height, bottomReserved, fontsize, lifetime):
|
||||
|
Loading…
Reference in New Issue
Block a user