Fix TypeError by rotation (#890)
Fixes the error in the PDF multitool when rotating all pages at the same time.
This commit is contained in:
parent
142e11a59a
commit
82c4e9cf41
1 changed files with 3 additions and 1 deletions
|
@ -179,7 +179,9 @@ class PdfContainer {
|
|||
|
||||
rotateAll(deg) {
|
||||
for (var i = 0; i < this.pagesContainer.childNodes.length; i++) {
|
||||
const img = this.pagesContainer.childNodes[i].querySelector("img");
|
||||
const child = this.pagesContainer.children[i];
|
||||
if (!child) continue;
|
||||
const img = child.querySelector("img");
|
||||
if (!img) continue;
|
||||
this.rotateElement(img, deg);
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue