mirror of
https://github.com/kovidgoyal/calibre.git
synced 2026-04-02 07:12:33 -04:00
...
This commit is contained in:
parent
b1ee068587
commit
e98d4bb409
@ -509,7 +509,7 @@ class VirtualCardContainer(QWidget):
|
||||
needed: set[int] = set()
|
||||
for r in range(first_row, last_row):
|
||||
ri = self._rows[r]
|
||||
for idx in range(ri.first_index, ri.first_index + ri.card_count):
|
||||
for idx in range(ri.first_index, min(ri.first_index + ri.card_count, len(self._cards))):
|
||||
needed.add(idx)
|
||||
|
||||
# Recycle widgets that are no longer needed
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user