Compare tool: Fix unbound local error caused by empty group

This commit is contained in:
Kovid Goyal 2014-01-31 20:18:42 +05:30
parent bdc51eb28c
commit 34c74a6e6e

View File

@ -682,6 +682,7 @@ class DiffSplit(QSplitter): # {{{
self.left.line_number_map[self.changes[-1].ltop] = '-'
self.right.line_number_map[self.changes[-1].rtop] = '-'
ahi = bhi = 0
for i, group in enumerate(cruncher.get_grouped_opcodes(context)):
for j, (tag, alo, ahi, blo, bhi) in enumerate(group):
if j == 0 and (i > 0 or min(alo, blo) > 0):