[se] Fix bug 77143

This commit is contained in:
GoshaZotov
2025-10-08 12:25:30 +03:00
committed by Ilya Kirillov
parent d574239a1f
commit 79f7b1efa4

View File

@ -5316,7 +5316,7 @@ function isAllowPasteLink(pastedWb) {
curHeader.parser = new AscCommonExcel.HeaderFooterParser();
curHeader.parser.parse(curHeader.str);
}
curHeader.parser.calculateTokens(this, indexPrintPage, countPrintPages);
curHeader.parser.calculateTokens(this, indexPrintPage, countPrintPages, true);
//get current tokens -> curHeader.parser -> getTokensByPosition(AscCommomExcel.c_oPortionPosition)
this._drawHeaderFooter(drawingCtx, printPagesData, curHeader, indexPrintPage, countPrintPages, false, opt_headerFooter);
@ -5337,7 +5337,7 @@ function isAllowPasteLink(pastedWb) {
curFooter.parser = new AscCommonExcel.HeaderFooterParser();
curFooter.parser.parse(curFooter.str);
}
curFooter.parser.calculateTokens(this, indexPrintPage, countPrintPages);
curFooter.parser.calculateTokens(this, indexPrintPage, countPrintPages, true);
//get current tokens -> curHeader.parser -> getTokensByPosition(AscCommomExcel.c_oPortionPosition)
this._drawHeaderFooter(drawingCtx, printPagesData, curFooter, indexPrintPage, countPrintPages, true, opt_headerFooter);
}