Commit f653c6eb authored by GoshaZotov's avatar GoshaZotov

WriteULong -> WriteString2 (table_styles_ids)

parent 90ab9782
...@@ -1424,7 +1424,7 @@ CopyProcessor.prototype = ...@@ -1424,7 +1424,7 @@ CopyProcessor.prototype =
this.oPresentationWriter.WriteBool(table_styles_ids[i] !== null); this.oPresentationWriter.WriteBool(table_styles_ids[i] !== null);
if(table_styles_ids[i] !== null) if(table_styles_ids[i] !== null)
{ {
this.oPresentationWriter.WriteULong(table_styles_ids[i]); this.oPresentationWriter.WriteString2(table_styles_ids[i]);
} }
} }
...@@ -3061,14 +3061,14 @@ PasteProcessor.prototype = ...@@ -3061,14 +3061,14 @@ PasteProcessor.prototype =
for(var i = 0; i < slide_count; ++i) for(var i = 0; i < slide_count; ++i)
{ {
arr_layouts_id[i] = stream.GetString2(); arr_layouts_id[i] = stream.GetString2();
var table_style_ids_len = stream.GetULong(); var table_styles_ids_len = stream.GetULong();
var table_style_ids = []; var table_styles_ids = [];
for(var j = 0; j < table_style_ids_len; ++j) for(var j = 0; j < table_styles_ids_len; ++j)
{ {
if(stream.GetBool()) if(stream.GetBool())
table_style_ids.push(stream.GetULong()); table_styles_ids.push(stream.GetString2());
else else
table_style_ids.push(-1); table_styles_ids.push(-1);
} }
arr_slides[i] = loader.ReadSlide(0); arr_slides[i] = loader.ReadSlide(0);
var sp_tree = arr_slides[i].cSld.spTree; var sp_tree = arr_slides[i].cSld.spTree;
...@@ -3077,7 +3077,7 @@ PasteProcessor.prototype = ...@@ -3077,7 +3077,7 @@ PasteProcessor.prototype =
{ {
if(sp_tree[s] instanceof CGraphicFrame) if(sp_tree[s] instanceof CGraphicFrame)
{ {
sp_tree[s].graphicObject.Set_TableStyle(table_style_ids[t], true); sp_tree[s].graphicObject.Set_TableStyle(table_styles_ids[t], true);
++t; ++t;
} }
} }
......
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