Commit 1ea0dd9c authored by Ilya Kirillov's avatar Ilya Kirillov

Fix last commit.

parent 627b544c
......@@ -275,6 +275,14 @@ CDocumentContentBase.prototype.GotoFootnoteRef = function(isNext, isCurrent)
CDocumentContentBase.prototype.MoveCursorToNearestPos = function(oNearestPos)
{
var oPara = oNearestPos.Paragraph;
var oParent = oPara.Parent;
if (oParent)
{
var oTopDocument = oParent.Is_TopDocument(true);
if (oTopDocument)
oTopDocument.Selection_Remove();
}
oPara.Set_ParaContentPos(oNearestPos.ContentPos, true, -1, -1);
oPara.Document_SetThisElementCurrent(true);
};
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