Commit 0612294a authored by Erik Schilling's avatar Erik Schilling

Update total page count when deleting pages

Otherwise adding and deleting pages from handlers may lead to incorrect
page numbers.
parent 6fb54133
......@@ -361,6 +361,8 @@ class Chunker {
} else {
this.pages = [];
}
this.total = this.pages.length;
}
addPage(blank) {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment