mirror of
git://github.com/kovidgoyal/calibre.git
synced 2025-12-24 05:16:12 +01:00
Edit book: Fix an error that occurs if more than 100 checkpoints are created. Fixes #1282583 [book editor error when adding 100 items](https://bugs.launchpad.net/calibre/+bug/1282583)
This commit is contained in:
parent
526e7882bb
commit
15c3a466e5
1 changed files with 1 additions and 0 deletions
|
|
@ -108,6 +108,7 @@ def add_savepoint(self, new_container, message):
|
|||
self.beginRemoveRows(ROOT, 0, num - 1)
|
||||
cleanup(self.states[:num])
|
||||
self.states = self.states[num:]
|
||||
self.pos -= num
|
||||
self.endRemoveRows()
|
||||
|
||||
def rewind_savepoint(self):
|
||||
|
|
|
|||
Loading…
Reference in a new issue