[XFA] - Avoid an exception when zooming on a XFA
This commit is contained in:
parent
d262ca314d
commit
403aa5cfa0
@ -269,7 +269,7 @@ class PDFPageView {
|
|||||||
let error = null;
|
let error = null;
|
||||||
try {
|
try {
|
||||||
const result = await this.xfaLayer.render(this.viewport, "display");
|
const result = await this.xfaLayer.render(this.viewport, "display");
|
||||||
if (this.textHighlighter) {
|
if (result?.textDivs && this.textHighlighter) {
|
||||||
this._buildXfaTextContentItems(result.textDivs);
|
this._buildXfaTextContentItems(result.textDivs);
|
||||||
}
|
}
|
||||||
} catch (ex) {
|
} catch (ex) {
|
||||||
|
Loading…
Reference in New Issue
Block a user