Fix FindAlternativeRow

This commit is contained in:
Star Brilliant 2013-09-21 12:04:11 +08:00
parent 0e4a20b2f0
commit 7e0b0cf2eb

View File

@ -54,7 +54,7 @@ def FindAlternativeRow(rows, c, height, bottomReserved):
for row in range(height-bottomReserved-math.ceil(c[7])): for row in range(height-bottomReserved-math.ceil(c[7])):
if not rows[c[4]][row]: if not rows[c[4]][row]:
return row return row
elif rows[c[4]][row][1] < rows[c[4]][res][1]: elif rows[c[4]][row][0] < rows[c[4]][res][0]:
res = row res = row
return res return res