Commit 03caf998 authored by Ilya.Kirillov's avatar Ilya.Kirillov Committed by Alexander.Trofimov

Исправлено падение при копировании, если ничего не выделено (баги 27647,...

Исправлено падение при копировании, если ничего не выделено (баги 27647, 27719). Исправлен баг с рассчетом метрик строки для случая linerule_AtLeast.

git-svn-id: svn://192.168.3.15/activex/AVS/Sources/TeamlabOffice/trunk/OfficeWeb@59831 954022d7-b5bf-4e40-9824-e11837661b57
parent 92754b4b
......@@ -8684,8 +8684,13 @@ CDocument.prototype =
this.DrawingObjects.Get_SelectedContent(SelectedContent);
else
{
if ( true !== this.Selection.Use || this.Selection.Flag !== selectionflag_Common )
return;
if (true !== this.Selection.Use || this.Selection.Flag !== selectionflag_Common)
{
if (bNeedTurnOffHistory)
History.TurnOn();
return null;
}
var StartPos = this.Selection.StartPos;
var EndPos = this.Selection.EndPos;
......
......@@ -1793,8 +1793,7 @@ CParaLineMetrics.prototype =
if (linerule_AtLeast === ParaPr.Spacing.LineRule && (this.Ascent + this.Descent + this.LineGap) > (this.TextAscent + this.TextDescent))
{
// В такой ситуации Word располагает текст внизу строки
this.Ascent = this.Ascent + this.Descent + this.LineGap - this.TextDescent;
this.Descent = this.TextDescent;
this.Ascent = this.Ascent + this.LineGap;
this.LineGap = 0;
}
},
......
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