Commit d2b96586 authored by Ilya Kirillov's avatar Ilya Kirillov

Fixed bug #34341

parent 27ea599c
...@@ -12147,7 +12147,7 @@ Paragraph.prototype.GotoFootnoteRef = function(isNext, isCurrent) ...@@ -12147,7 +12147,7 @@ Paragraph.prototype.GotoFootnoteRef = function(isNext, isCurrent)
{ {
for (var nIndex = nPos; nIndex >= 0; --nIndex) for (var nIndex = nPos; nIndex >= 0; --nIndex)
{ {
var nRes = this.Content[nIndex].GotoFootnoteRef ? this.Content[nIndex].GotoFootnoteRef(true, true === isCurrent && nPos === nIndex, isStepOver) : 0; var nRes = this.Content[nIndex].GotoFootnoteRef ? this.Content[nIndex].GotoFootnoteRef(false, true === isCurrent && nPos === nIndex, isStepOver) : 0;
if (nRes > 0) if (nRes > 0)
isStepOver = true; isStepOver = true;
......
...@@ -9106,7 +9106,7 @@ ParaRun.prototype.GotoFootnoteRef = function(isNext, isCurrent, isStepOver) ...@@ -9106,7 +9106,7 @@ ParaRun.prototype.GotoFootnoteRef = function(isNext, isCurrent, isStepOver)
} }
else else
{ {
for (var nIndex = nPos; nIndex >= 0; --nIndex) for (var nIndex = Math.min(nPos, this.Content.length - 1); nIndex >= 0; --nIndex)
{ {
if (para_FootnoteReference === this.Content[nIndex].Type && ((true !== isCurrent && true === isStepOver) || (true === isCurrent && (true === this.Selection.Use || nPos !== nIndex)))) if (para_FootnoteReference === this.Content[nIndex].Type && ((true !== isCurrent && true === isStepOver) || (true === isCurrent && (true === this.Selection.Use || nPos !== nIndex))))
{ {
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment