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();