[pdf] Fix bug #78312

This commit is contained in:
Nikita Khromov
2025-11-13 16:12:35 +07:00
committed by Ilya Kirillov
parent 9de68db9de
commit f9a0cb2211

View File

@ -159,7 +159,7 @@
let isOnOpen = Asc.editor.getDocumentRenderer().IsOpenFormsInProgress;
let nCharLimit = this.ParentPDF.GetCharLimit();
if (false == isOnOpen && bIgnoreCount !== true) {
if (false == isOnOpen && bIgnoreCount !== true && Asc.editor.isDocumentLoadComplete) {
let nCharsCount = AscWord.GraphemesCounter.GetCount(codePoints, this.GetCalculatedTextPr());
if (nCharsCount > nCharLimit)