mirror of
git://github.com/kovidgoyal/calibre.git
synced 2026-05-08 20:35:18 +02:00
Edit Book: Reports tool: Fix double clicking on an unused image causing an error
This commit is contained in:
parent
0e2de4306c
commit
e07fc77a52
1 changed files with 4 additions and 3 deletions
|
|
@ -336,9 +336,10 @@ def clear(self):
|
|||
self.pos_map.clear()
|
||||
|
||||
def __call__(self, key, locations):
|
||||
self.pos_map[key] = (self.pos_map[key] + 1) % len(locations)
|
||||
loc = locations[self.pos_map[key]]
|
||||
jump_to_location(loc)
|
||||
if len(locations):
|
||||
self.pos_map[key] = (self.pos_map[key] + 1) % len(locations)
|
||||
loc = locations[self.pos_map[key]]
|
||||
jump_to_location(loc)
|
||||
|
||||
jump = Jump() # }}}
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue