Commit 7155d7de authored by Sergey.Tsarkov's avatar Sergey.Tsarkov Committed by Alexander.Trofimov

поправлены баги в формулах

git-svn-id: svn://192.168.3.15/activex/AVS/Sources/TeamlabOffice/trunk/OfficeWeb@55674 954022d7-b5bf-4e40-9824-e11837661b57
parent 3c849de1
...@@ -2105,8 +2105,8 @@ function Binary_oMathWriter(memory, oMathPara) ...@@ -2105,8 +2105,8 @@ function Binary_oMathWriter(memory, oMathPara)
this.WriteCGpRule = function(CGpRule) this.WriteCGpRule = function(CGpRule)
{ {
this.memory.WriteByte(c_oSer_OMathBottomNodesValType.Val); this.memory.WriteByte(c_oSer_OMathBottomNodesValType.Val);
this.memory.WriteByte(c_oSerPropLenType.Byte); this.memory.WriteByte(c_oSerPropLenType.Long);
this.memory.WriteByte(CGpRule); this.memory.WriteLong(CGpRule);
} }
this.WriteChr = function(Chr) this.WriteChr = function(Chr)
{ {
...@@ -2753,8 +2753,8 @@ function Binary_oMathWriter(memory, oMathPara) ...@@ -2753,8 +2753,8 @@ function Binary_oMathWriter(memory, oMathPara)
this.WriteRSpRule = function(RSpRule) this.WriteRSpRule = function(RSpRule)
{ {
this.memory.WriteByte(c_oSer_OMathBottomNodesValType.Val); this.memory.WriteByte(c_oSer_OMathBottomNodesValType.Val);
this.memory.WriteByte(c_oSerPropLenType.Byte); this.memory.WriteByte(c_oSerPropLenType.Long);
this.memory.WriteByte(RSpRule); this.memory.WriteLong(RSpRule);
} }
this.WriteScr = function(Scr) this.WriteScr = function(Scr)
{ {
...@@ -8999,19 +8999,10 @@ function Binary_oMathReader(stream) ...@@ -8999,19 +8999,10 @@ function Binary_oMathReader(stream)
this.ReadMathCGpRule = function(type, length, props) this.ReadMathCGpRule = function(type, length, props)
{ {
var res = c_oSerConstants.ReadOk; var res = c_oSerConstants.ReadOk;
var oThis = this;
if (c_oSer_OMathBottomNodesValType.Val === type) if(c_oSer_OMathBottomNodesValType.Val == type)
{ props.cGpRule = this.stream.GetULongLE();
var cGpRule = this.stream.GetUChar(length);
switch (cGpRule)
{
case 0: props.cGpRule = "centered"; break;
case 1: props.cGpRule = "match"; break;
default: props.cGpRule = "centered";
}
}
else
res = c_oSerConstants.ReadUnknown;
return res; return res;
}; };
this.ReadMathCSp = function(type, length, props) this.ReadMathCSp = function(type, length, props)
...@@ -10934,19 +10925,10 @@ function Binary_oMathReader(stream) ...@@ -10934,19 +10925,10 @@ function Binary_oMathReader(stream)
this.ReadMathRSpRule = function(type, length, props) this.ReadMathRSpRule = function(type, length, props)
{ {
var res = c_oSerConstants.ReadOk; var res = c_oSerConstants.ReadOk;
var oThis = this;
if (c_oSer_OMathBottomNodesValType.Val === type) if(c_oSer_OMathBottomNodesValType.Val == type)
{ props.rSpRule = this.stream.GetULongLE();
var rSpRule = this.stream.GetUChar(length);
switch (rSpRule)
{
case 0: props.rSpRule = "centered"; break;
case 1: props.rSpRule = "match"; break;
default: props.rSpRule = "centered";
}
}
else
res = c_oSerConstants.ReadUnknown;
return res; return res;
}; };
this.ReadMathScr = function(type, length, props) this.ReadMathScr = function(type, length, props)
...@@ -10958,13 +10940,13 @@ function Binary_oMathReader(stream) ...@@ -10958,13 +10940,13 @@ function Binary_oMathReader(stream)
var scr = this.stream.GetUChar(length); var scr = this.stream.GetUChar(length);
switch (scr) switch (scr)
{ {
case 0: props.scr = "double-struck"; break; case 0: props.scr = TXT_DOUBLE_STRUCK; break;
case 1: props.scr = "fraktur"; break; case 1: props.scr = TXT_FRAKTUR; break;
case 2: props.scr = "monospace"; break; case 2: props.scr = TXT_MONOSPACE; break;
case 3: props.scr = "roman"; break; case 3: props.scr = TXT_ROMAN; break;
case 4: props.scr = "sans-serif"; break; case 4: props.scr = TXT_SANS_SERIF; break;
case 5: props.scr = "script"; break; case 5: props.scr = TXT_SCRIPT; break;
default: props.scr = "roman"; default: props.scr = TXT_ROMAN;
} }
} }
else else
......
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