Merge pull request #16844 from Snuffleupagus/StampEditor-isEmpty

Update the `StampEditor.isEmpty` method to handle File (PR 16828 follow-up)
This commit is contained in:
Jonas Jenwald 2023-08-18 20:40:09 +02:00 committed by GitHub
commit 60581c427e
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -221,10 +221,11 @@ class StampEditor extends AnnotationEditor {
/** @inheritdoc */
isEmpty() {
return (
this.#bitmapPromise === null &&
this.#bitmap === null &&
this.#bitmapUrl === null
return !(
this.#bitmapPromise ||
this.#bitmap ||
this.#bitmapUrl ||
this.#bitmapFile
);
}