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

Поправила баг : на Recalculate_Range, Recalculate_Range_Width не учитывался...

Поправила баг : на Recalculate_Range, Recalculate_Range_Width не учитывался para_Math_Ampersand => из-за этого некорректно рассчитывалдась ширина контента

git-svn-id: svn://192.168.3.15/activex/AVS/Sources/TeamlabOffice/trunk/OfficeWeb@61753 954022d7-b5bf-4e40-9824-e11837661b57
parent 8f8befe6
...@@ -1996,6 +1996,7 @@ ParaRun.prototype.Recalculate_Range = function(PRS, ParaPr, Depth) ...@@ -1996,6 +1996,7 @@ ParaRun.prototype.Recalculate_Range = function(PRS, ParaPr, Depth)
case para_Sym: case para_Sym:
case para_Text: case para_Text:
case para_Math_Text: case para_Math_Text:
case para_Math_Ampersand:
case para_Math_Placeholder: case para_Math_Placeholder:
{ {
// Отмечаем, что началось слово // Отмечаем, что началось слово
...@@ -2578,6 +2579,7 @@ ParaRun.prototype.Recalculate_LineMetrics = function(PRS, ParaPr, _CurLine, _Cur ...@@ -2578,6 +2579,7 @@ ParaRun.prototype.Recalculate_LineMetrics = function(PRS, ParaPr, _CurLine, _Cur
break; break;
} }
case para_Math_Text: case para_Math_Text:
case para_Math_Ampersand:
case para_Math_Placeholder: case para_Math_Placeholder:
case para_Math_BreakOperator: case para_Math_BreakOperator:
{ {
...@@ -2672,6 +2674,7 @@ ParaRun.prototype.Recalculate_Range_Width = function(PRSC, _CurLine, _CurRange) ...@@ -2672,6 +2674,7 @@ ParaRun.prototype.Recalculate_Range_Width = function(PRSC, _CurLine, _CurRange)
case para_Text: case para_Text:
case para_Math_Text: case para_Math_Text:
case para_Math_Placeholder: case para_Math_Placeholder:
case para_Math_Ampersand:
{ {
PRSC.Letters++; PRSC.Letters++;
...@@ -2823,7 +2826,9 @@ ParaRun.prototype.Recalculate_Range_Spaces = function(PRSA, _CurLine, _CurRange, ...@@ -2823,7 +2826,9 @@ ParaRun.prototype.Recalculate_Range_Spaces = function(PRSA, _CurLine, _CurRange,
case para_Sym: case para_Sym:
case para_Text: case para_Text:
case para_Math_Text: case para_Math_Text:
case para_Math_Placeholder:
case para_Math_BreakOperator: case para_Math_BreakOperator:
case para_Math_Ampersand:
{ {
var WidthVisible = 0; var WidthVisible = 0;
...@@ -3611,6 +3616,7 @@ ParaRun.prototype.Draw_HighLights = function(PDSH) ...@@ -3611,6 +3616,7 @@ ParaRun.prototype.Draw_HighLights = function(PDSH)
case para_Tab: case para_Tab:
case para_Text: case para_Text:
case para_Math_Text: case para_Math_Text:
case para_Math_Placeholder:
case para_Math_BreakOperator: case para_Math_BreakOperator:
case para_Math_Ampersand: case para_Math_Ampersand:
case para_Sym: case para_Sym:
...@@ -8631,11 +8637,6 @@ ParaRun.prototype.Recalculate_Range_OneLine = function(PRS, ParaPr, Depth) ...@@ -8631,11 +8637,6 @@ ParaRun.prototype.Recalculate_Range_OneLine = function(PRS, ParaPr, Depth)
if (PRS.LineTextDescent < this.TextDescent) if (PRS.LineTextDescent < this.TextDescent)
PRS.LineTextDescent = this.TextDescent;*/ PRS.LineTextDescent = this.TextDescent;*/
}; };
/*ParaRun.prototype.Recalculate_WidthPoints_EqArray = function(WidthPoints)
{
this.bEqArray = true;
this.Recalculate_MeasureContent(WidthPoints);
};*/
ParaRun.prototype.Math_Apply_Style = function(Value) ParaRun.prototype.Math_Apply_Style = function(Value)
{ {
if(Value !== this.MathPrp.sty) if(Value !== this.MathPrp.sty)
......
...@@ -725,15 +725,6 @@ CEqArray.prototype.fillContent = function() ...@@ -725,15 +725,6 @@ CEqArray.prototype.fillContent = function()
for (var nIndex = 0; nIndex < nRowsCount; nIndex++) for (var nIndex = 0; nIndex < nRowsCount; nIndex++)
this.elements[nIndex][0] = this.Content[nIndex]; this.elements[nIndex][0] = this.Content[nIndex];
}; };
/*CEqArray.prototype.Recalculate_Range = function(PRS, ParaPr, Depth)
{
PRS.bMath_OneLine = true;
for (var Pos = 0, Count = this.Content.length; Pos < Count; Pos++)
this.Content[Pos].Recalculate_Range(PRS, ParaPr, Depth);
this.recalculateSize(g_oTextMeasurer);
};*/
CEqArray.prototype.Resize = function(oMeasure, RPI) CEqArray.prototype.Resize = function(oMeasure, RPI)
{ {
// на случай, чтобы не затереть массив // на случай, чтобы не затереть массив
......
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