mirror of
https://github.com/kovidgoyal/calibre.git
synced 2025-07-09 03:04:10 -04:00
Compare tool: Fix unbound local error caused by empty group
This commit is contained in:
parent
bdc51eb28c
commit
34c74a6e6e
@ -682,6 +682,7 @@ class DiffSplit(QSplitter): # {{{
|
|||||||
self.left.line_number_map[self.changes[-1].ltop] = '-'
|
self.left.line_number_map[self.changes[-1].ltop] = '-'
|
||||||
self.right.line_number_map[self.changes[-1].rtop] = '-'
|
self.right.line_number_map[self.changes[-1].rtop] = '-'
|
||||||
|
|
||||||
|
ahi = bhi = 0
|
||||||
for i, group in enumerate(cruncher.get_grouped_opcodes(context)):
|
for i, group in enumerate(cruncher.get_grouped_opcodes(context)):
|
||||||
for j, (tag, alo, ahi, blo, bhi) in enumerate(group):
|
for j, (tag, alo, ahi, blo, bhi) in enumerate(group):
|
||||||
if j == 0 and (i > 0 or min(alo, blo) > 0):
|
if j == 0 and (i > 0 or min(alo, blo) > 0):
|
||||||
|
Loading…
x
Reference in New Issue
Block a user