Commit 0def89b1 authored by Ilya Kirillov's avatar Ilya Kirillov

Исправлен баг при составном наборе.

parent bd7c5339
...@@ -16918,7 +16918,7 @@ CDocument.prototype.Remove_CompositeText = function(nCount) ...@@ -16918,7 +16918,7 @@ CDocument.prototype.Remove_CompositeText = function(nCount)
var oRun = this.CompositeInput.Run; var oRun = this.CompositeInput.Run;
var nPos = this.CompositeInput.Pos + this.CompositeInput.Length; var nPos = this.CompositeInput.Pos + this.CompositeInput.Length;
var nDelCount = Math.min(nCount, this.CompositeInput.Length, oRun.Content.length - 1, nPos); var nDelCount = Math.max(0, Math.min(nCount, this.CompositeInput.Length, oRun.Content.length, nPos));
oRun.Remove_FromContent(nPos - nDelCount, nDelCount, true); oRun.Remove_FromContent(nPos - nDelCount, nDelCount, true);
this.CompositeInput.Length -= nDelCount; this.CompositeInput.Length -= nDelCount;
......
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