[pdf] Fix bug #79061

This commit is contained in:
Nikita Khromov
2025-12-12 16:54:07 +07:00
parent d3757c991e
commit 1592b3c35b

View File

@ -1168,6 +1168,11 @@ var CPresentation = CPresentation || function(){};
};
CPDFDoc.prototype.SetNeedUpdateSearch = function(bUpdate) {
this.needUpdateSearch = bUpdate;
if (bUpdate && this.SearchEngine.TextAroundTimer != null) {
clearTimeout(this.SearchEngine.TextAroundTimer);
this.SearchEngine.TextAroundTimer = null;
}
};
CPDFDoc.prototype.IsNeedUpdateSearch = function() {
return this.needUpdateSearch;