Commit d27ea799 authored by Anna.Pavlova's avatar Anna.Pavlova Committed by Alexander.Trofimov

Поправлен баг : PreSubSup не должна разбиваться на строки по операторам

git-svn-id: svn://192.168.3.15/activex/AVS/Sources/TeamlabOffice/trunk/OfficeWeb@68328 954022d7-b5bf-4e40-9824-e11837661b57
parent c07cf6b7
...@@ -883,7 +883,15 @@ CDegreeSubSup.prototype.init = function(props) ...@@ -883,7 +883,15 @@ CDegreeSubSup.prototype.init = function(props)
}; };
CDegreeSubSup.prototype.fillContent = function() CDegreeSubSup.prototype.fillContent = function()
{ {
this.NeedBreakContent(0); if(this.Pr.type == DEGREE_SubSup)
{
this.bCanBreak = true;
this.NumBreakContent = 0;
}
else
{
this.bCanBreak = false;
}
this.baseContent = this.Content[0]; this.baseContent = this.Content[0];
this.iters = new CIterators(this.Content[1], this.Content[2]); this.iters = new CIterators(this.Content[1], this.Content[2]);
...@@ -931,7 +939,7 @@ CDegreeSubSup.prototype.Recalculate_LineMetrics = function(PRS, ParaPr, _CurLine ...@@ -931,7 +939,7 @@ CDegreeSubSup.prototype.Recalculate_LineMetrics = function(PRS, ParaPr, _CurLine
}; };
CDegreeSubSup.prototype.Recalculate_Range = function(PRS, ParaPr, Depth) CDegreeSubSup.prototype.Recalculate_Range = function(PRS, ParaPr, Depth)
{ {
this.bOneLine = PRS.bMath_OneLine; this.bOneLine = this.bCanBreak == false || PRS.bMath_OneLine == true;
if(this.bOneLine === true) if(this.bOneLine === true)
{ {
......
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