Commit 74132d69 authored by Ilya Kirillov's avatar Ilya Kirillov

Fixed bug #34427. Now we do not delete a selected text on adding a footnote.

parent 2ff44785
......@@ -11221,6 +11221,12 @@ CDocument.prototype.AddFootnote = function(sText)
var oFootnote = this.Footnotes.CreateFootnote();
oFootnote.AddDefaultFootnoteContent(sText);
if (true === this.Is_SelectionUse())
{
this.Cursor_MoveRight(false, false, false);
this.Selection_Remove();
}
if (sText)
this.Paragraph_Add(new ParaFootnoteReference(oFootnote, sText));
else
......
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