Commit abe3bcd3 authored by Sergey.Luzyanin's avatar Sergey.Luzyanin Committed by Alexander.Trofimov

Bug 25192 - Документ не открывается, если была добавлена автофигура и изменена цветовая схема

git-svn-id: svn://192.168.3.15/activex/AVS/Sources/TeamlabOffice/trunk/OfficeWeb@57118 954022d7-b5bf-4e40-9824-e11837661b57
parent d2178dcd
...@@ -2372,20 +2372,20 @@ function CBinaryFileWriter() ...@@ -2372,20 +2372,20 @@ function CBinaryFileWriter()
for (var hi = 0; hi < _content_len_h; hi++) for (var hi = 0; hi < _content_len_h; hi++)
{ {
var _elem_h = _elem.Content[i]; var _elem_h = _elem.Content[hi];
switch (_elem.Type) switch (_elem_h.Type)
{ {
case para_Run: case para_Run:
{ {
var _run_len = _elem.Content.length; var _run_len = _elem_h.Content.length;
var _run_text = ""; var _run_text = "";
for (var j = 0; j < _run_len; j++) for (var j = 0; j < _run_len; j++)
{ {
switch (_elem.Content[j].Type) switch (_elem_h.Content[j].Type)
{ {
case para_Text: case para_Text:
{ {
_run_text += _elem.Content[j].Value; _run_text += _elem_h.Content[j].Value;
break; break;
} }
case para_Space : case para_Space :
...@@ -2403,7 +2403,7 @@ function CBinaryFileWriter() ...@@ -2403,7 +2403,7 @@ function CBinaryFileWriter()
if("" != _run_text) if("" != _run_text)
{ {
oThis.StartRecord(0); // subtype oThis.StartRecord(0); // subtype
oThis.WriteTextRun(_elem.Pr, _run_text, _hObj); oThis.WriteTextRun(_elem_h.Pr, _run_text, _hObj);
oThis.EndRecord(); oThis.EndRecord();
_count++; _count++;
...@@ -2411,7 +2411,7 @@ function CBinaryFileWriter() ...@@ -2411,7 +2411,7 @@ function CBinaryFileWriter()
_run_text = ""; _run_text = "";
} }
oThis.StartRecord(0); // subtype oThis.StartRecord(0); // subtype
oThis.WriteLineBreak(_elem.Pr, _hObj); oThis.WriteLineBreak(_elem_h.Pr, _hObj);
oThis.EndRecord(); oThis.EndRecord();
_count++; _count++;
...@@ -2424,7 +2424,7 @@ function CBinaryFileWriter() ...@@ -2424,7 +2424,7 @@ function CBinaryFileWriter()
if ("" != _run_text) if ("" != _run_text)
{ {
oThis.StartRecord(0); // subtype oThis.StartRecord(0); // subtype
oThis.WriteTextRun(_elem.Pr, _run_text, _hObj); oThis.WriteTextRun(_elem.Content[0].Pr, _run_text, _hObj);
oThis.EndRecord(); oThis.EndRecord();
_count++; _count++;
......
...@@ -291,7 +291,9 @@ CHistory.prototype = ...@@ -291,7 +291,9 @@ CHistory.prototype =
this.Add(Class, Type, sheetid, range, Data, LocalChange); this.Add(Class, Type, sheetid, range, Data, LocalChange);
} }
if(Class) if(Class)
{
Class.Load_Changes(Data.oBinaryReader, null, new CDocumentColor(255, 255, 255)); Class.Load_Changes(Data.oBinaryReader, null, new CDocumentColor(255, 255, 255));
}
} }
} }
this._addRedoObjectParam(oRedoObjectParam, this.CurPoint.Items[this.CurPoint.Items.length - 1]); this._addRedoObjectParam(oRedoObjectParam, this.CurPoint.Items[this.CurPoint.Items.length - 1]);
...@@ -477,7 +479,7 @@ CHistory.prototype = ...@@ -477,7 +479,7 @@ CHistory.prototype =
{ {
var Item = Point.Items[Index]; var Item = Point.Items[Index];
if ( /*true === Item.NeedRecalc*/Item.Class.Refresh_RecalcData ) if ( /*true === Item.NeedRecalc*/ Item.Class && Item.Class.Refresh_RecalcData )
Item.Class.Refresh_RecalcData( Item.Data ); Item.Class.Refresh_RecalcData( Item.Data );
if(Item.Type === historyitem_Workbook_ChangeColorScheme) if(Item.Type === historyitem_Workbook_ChangeColorScheme)
{ {
......
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