mirror of
https://github.com/zen-browser/pdf.js.git
synced 2025-07-08 09:20:06 +02:00
[Editor] Fix undoing an editor deletion (bug 1886959)
The original bug was because the parent was null when trying to show an highlight annotation which led to an exception. That led me to think about having some null/non-null parent when removing an editor: it's a mess especially if a destroyed parent is still attached to an editor. Consequently, this patch always sets the parent to null when deleting the editor.
This commit is contained in:
parent
b0f54b2235
commit
d5a0e557c2
10 changed files with 574 additions and 11 deletions
|
@ -1713,6 +1713,7 @@ class AnnotationEditorUIManager {
|
|||
layer.addOrRebuild(editor);
|
||||
} else {
|
||||
this.addEditor(editor);
|
||||
this.addToAnnotationStorage(editor);
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue