[edition] Add support for saving a newly added FreeText

This commit is contained in:
Calixte Denizet 2022-06-01 15:42:46 +02:00
parent 1816b5e926
commit 7773b3f5be
12 changed files with 409 additions and 23 deletions

View file

@ -88,7 +88,7 @@ class XRefMock {
getNewRef() {
if (this._newRefNum === null) {
this._newRefNum = Object.keys(this._map).length;
this._newRefNum = Object.keys(this._map).length || 1;
}
return Ref.get(this._newRefNum++, 0);
}