Skip to content

Commit

Permalink
Fix find nMinPosContent in GetAbsoluteLast method
Browse files Browse the repository at this point in the history
  • Loading branch information
IgolJack authored and KirillovIlya committed Jan 16, 2025
1 parent 200cada commit 9b25288
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion word/Math/NamesOfLiterals.js
Original file line number Diff line number Diff line change
Expand Up @@ -6148,7 +6148,7 @@
continue;
}

let nMinPosContent = Math.min(oLastElem.Content.length - 1, oLastElem.State.ContentPos - 1);
let nMinPosContent = Math.min(oLastElem.Content.length - 1, oLastElem.State.ContentPos);
let oLastElement = oLastElem.Content[nMinPosContent];
let strValue = String.fromCharCode(oLastElement.value);
return GetTokenType(strValue, TokenSearch_Everything);
Expand Down

0 comments on commit 9b25288

Please sign in to comment.