Commit 57c78f87 authored by Ilya Kirillov's avatar Ilya Kirillov

Fixed bug #34839

parent d5ceef8b
...@@ -3883,8 +3883,8 @@ CDocument.prototype.Draw_Borders = function(Graphics ...@@ -3883,8 +3883,8 @@ CDocument.prototype.Draw_Borders = function(Graphics
*/ */
CDocument.prototype.AddNewParagraph = function(bRecalculate, bForceAdd) CDocument.prototype.AddNewParagraph = function(bRecalculate, bForceAdd)
{ {
// TODO: Пересчет нужно перенести сюда, и убрать из контроллеров
this.Controller.AddNewParagraph(bRecalculate, bForceAdd); this.Controller.AddNewParagraph(bRecalculate, bForceAdd);
this.Recalculate();
}; };
/** /**
* Расширяем документ до точки (X,Y) с помощью новых параграфов. * Расширяем документ до точки (X,Y) с помощью новых параграфов.
...@@ -4278,7 +4278,6 @@ CDocument.prototype.ClearParagraphFormatting = function() ...@@ -4278,7 +4278,6 @@ CDocument.prototype.ClearParagraphFormatting = function()
}; };
CDocument.prototype.Remove = function(nDirection, bOnlyText, bRemoveOnlySelection, bOnTextAdd) CDocument.prototype.Remove = function(nDirection, bOnlyText, bRemoveOnlySelection, bOnTextAdd)
{ {
// TODO: Пересчет нужно перенести сюда, и убрать из контроллеров
if (undefined === bRemoveOnlySelection) if (undefined === bRemoveOnlySelection)
bRemoveOnlySelection = false; bRemoveOnlySelection = false;
...@@ -4287,6 +4286,8 @@ CDocument.prototype.Remove = function(nDirection, bOnlyText, bRemoveOnlySelectio ...@@ -4287,6 +4286,8 @@ CDocument.prototype.Remove = function(nDirection, bOnlyText, bRemoveOnlySelectio
this.Controller.Remove(nDirection, bOnlyText, bRemoveOnlySelection, bOnTextAdd); this.Controller.Remove(nDirection, bOnlyText, bRemoveOnlySelection, bOnTextAdd);
this.Recalculate();
this.Document_UpdateInterfaceState(); this.Document_UpdateInterfaceState();
this.Document_UpdateRulersState(); this.Document_UpdateRulersState();
}; };
......
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