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

bug #31371

1. Добавлены gaps "×" (0x00D7), "÷"(0x00F7)
2. 0x00D7 и 0x00F7 добавлены в таблицу Break Operators
3. Поправлен привнесенный баг: если формула инлайновая, не должен учитываться приоритет операторов
4. В функции SetValue у ArgSize поправлено присвоение значения для случая, когда значение приходит undefined

git-svn-id: svn://192.168.3.15/activex/AVS/Sources/TeamlabOffice/trunk/OfficeWeb@67512 954022d7-b5bf-4e40-9824-e11837661b57
parent 4f2fa6e5
......@@ -1310,6 +1310,7 @@ ParaMath.prototype.Recalculate_Range = function(PRS, ParaPr, Depth)
}
PRS.MathNotInline = this.ParaMathRPI.bInline == false; // если неинлайновая формула, то рассчитываем Ranges по максимальному измерению
PRS.bPriorityOper = this.ParaMathRPI.bInline == false;
if(this.ParaMathRPI.bInline == false)
{
......@@ -1726,7 +1727,6 @@ ParaMath.prototype.private_UpdateXLimits = function(PRS)
PRS.WrapIndent = MathSettings.Get_WrapIndent(WrapState);
PRS.bPriorityOper = this.ParaMathRPI.bInline == false;
var bFirstLine = this.Root.IsStartLine(PRS.Line);
PRS.bFirstLine = bFirstLine;
......
......@@ -260,14 +260,16 @@ CCoeffGaps.prototype =
return coeff;
},
checkOperSign: function(code) // "+", "-", "±", "∓"
checkOperSign: function(code) // "+", "-", "±", "∓", "×", "÷"
{
var PLUS = 0x2B,
MINUS = 0x2D,
PLUS_MINUS = 0xB1,
MINUS_PLUS = 0x2213;
var PLUS = 0x2B,
MINUS = 0x2D,
PLUS_MINUS = 0xB1,
MINUS_PLUS = 0x2213,
MULTIPLICATION = 0xD7,
DIVISION = 0xF7;
return code == PLUS || code == MINUS || code == PLUS_MINUS || code == MINUS_PLUS;
return code == PLUS || code == MINUS || code == PLUS_MINUS || code == MINUS_PLUS || code == MULTIPLICATION || code == DIVISION;
},
checkEqualSign: function(code)
{
......@@ -332,7 +334,7 @@ CMathArgSize.prototype =
SetValue: function(val)
{
if(val === null || val === undefined)
val = undefined;
this.value = undefined;
else if(val < - 2)
this.value = -2;
else if(val > 2)
......
......@@ -1335,7 +1335,8 @@ var q_Math_BreakOperators =
0x2AC7: 2, 0x2AC8: 2, 0x2AC9: 2, 0x2ACA: 2, 0x2ACB: 2, 0x2ACC: 2,
0x2ACD: 2, 0x2ACE: 2, 0x2ACF: 2, 0x2AD0: 2, 0x2AD1: 2, 0x2AD2: 2,
0x2AD3: 2, 0x2AD4: 2, 0x2AD5: 2, 0x2AD6: 2, 0x2AD7: 2, 0x2AD8: 2,
0x2AD9: 2, 0x2ADA: 2, 0x2ADB: 2, 0x2ADC: 2, 0x2ADD: 2
0x2AD9: 2, 0x2ADA: 2, 0x2ADB: 2, 0x2ADC: 2, 0x2ADD: 2,
0x00D7: 1, 0x00F7: 1
};
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