From 68c9e4f904a53dd41965bb2eb2fd9b8c086645f7 Mon Sep 17 00:00:00 2001 From: Nikita Khromov Date: Thu, 13 Feb 2025 12:51:30 +0700 Subject: [PATCH] Fix bug #73210 --- pdf/src/annotations/textPrTrackHandler.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/pdf/src/annotations/textPrTrackHandler.js b/pdf/src/annotations/textPrTrackHandler.js index ea45749815..791efb1349 100644 --- a/pdf/src/annotations/textPrTrackHandler.js +++ b/pdf/src/annotations/textPrTrackHandler.js @@ -76,7 +76,7 @@ CAnnotTextPrTrackHandler.prototype.OnChangePosition = function() { let bounds = this.GetBounds(); if (!bounds) - return; + return this.OnHide(); this.OnShow(bounds); }; @@ -87,7 +87,7 @@ CAnnotTextPrTrackHandler.prototype.GetBounds = function() { let oAnnot = this.Annot; - if (!oAnnot) + if (!oAnnot || !oAnnot.IsUseInDocument()) return null; let oDoc = oAnnot.GetDocument();