1
0
Fork 0
mirror of https://github.com/mozilla/pdf.js.git synced 2025-04-29 07:37:57 +02:00

XFA - Fix error when creating a new data node

- fix for issue #13556;
  - value in a field can be empty.
This commit is contained in:
Calixte Denizet 2021-06-14 11:33:03 +02:00
parent a4e8f3bdee
commit 150fa3d96e
4 changed files with 19 additions and 4 deletions

View file

@ -313,7 +313,7 @@ function createDataNode(root, container, expr) {
}
root = child;
} else {
parsed[i].index = children.length - index;
parsed[i].index = index - children.length;
return createNodes(root, parsed.slice(i));
}
}