Commit 046c74c8 authored by Ilya Kirillov's avatar Ilya Kirillov

Fixed bug #34055.

parent 5d2b8921
......@@ -3872,6 +3872,7 @@ CDocument.prototype.Extend_ToPos = function(X, Y)
{
var NewParagraph = new Paragraph(this.DrawingDocument, this, 0, 0, 0, 0, 0);
var NewRun = new ParaRun(NewParagraph, false);
NewParagraph.Add_ToContent(0, NewRun);
var StyleId = LastPara.Style_Get();
var NextId = undefined;
......
......@@ -2266,6 +2266,8 @@ CDocumentContent.prototype.Extend_ToPos = function(X, Y)
while (true)
{
var NewParagraph = new Paragraph(this.DrawingDocument, this, 0, 0, 0, 0, 0, this.bPresentation === true);
var NewRun = new ParaRun(NewParagraph, false);
NewParagraph.Add_ToContent(0, NewRun);
var StyleId = LastPara.Style_Get();
var NextId = undefined;
......
......@@ -6322,7 +6322,7 @@ ParaRun.prototype.Apply_TextPr = function(TextPr, IncFontSize, ApplyToAll)
var StartPos = this.State.Selection.StartPos;
var EndPos = this.State.Selection.EndPos;
if (StartPos === EndPos)
if (StartPos === EndPos && 0 !== this.Content.length)
{
CRun = this;
LRun = null;
......
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