Commit e66b64b8 authored by Igor.Zotov's avatar Igor.Zotov Committed by Alexander.Trofimov

поправлен Bug #31971 ([AutoSave][Copy&Paste]Повреждение файла и потеря данных...

поправлен Bug #31971 ([AutoSave][Copy&Paste]Повреждение файла и потеря данных при вставке таблицы из CPE в CSE)

git-svn-id: svn://192.168.3.15/activex/AVS/Sources/TeamlabOffice/trunk/OfficeWeb@68910 954022d7-b5bf-4e40-9824-e11837661b57
parent 3da00879
...@@ -2085,6 +2085,8 @@ ...@@ -2085,6 +2085,8 @@
ReadPresentationShapes: function(stream, worksheet) ReadPresentationShapes: function(stream, worksheet)
{ {
History.TurnOff();
var loader = new BinaryPPTYLoader(); var loader = new BinaryPPTYLoader();
loader.presentation = worksheet.model; loader.presentation = worksheet.model;
loader.Start_UseFullUrl(); loader.Start_UseFullUrl();
...@@ -2130,12 +2132,16 @@ ...@@ -2130,12 +2132,16 @@
arr_shapes[i] = worksheet.objectRender.createDrawingObject(); arr_shapes[i] = worksheet.objectRender.createDrawingObject();
arr_shapes[i].graphicObject = drawing; arr_shapes[i].graphicObject = drawing;
} }
History.TurnOn();
return {arrShapes: arr_shapes, arrImages: loader.End_UseFullUrl(), arrTransforms: arr_transforms}; return {arrShapes: arr_shapes, arrImages: loader.End_UseFullUrl(), arrTransforms: arr_transforms};
}, },
ReadPresentationText: function(stream, worksheet) ReadPresentationText: function(stream, worksheet)
{ {
History.TurnOff();
var loader = new BinaryPPTYLoader(); var loader = new BinaryPPTYLoader();
loader.Start_UseFullUrl(); loader.Start_UseFullUrl();
loader.stream = stream; loader.stream = stream;
...@@ -2153,6 +2159,9 @@ ...@@ -2153,6 +2159,9 @@
elements.push(paragraph); elements.push(paragraph);
} }
History.TurnOn();
return elements; return elements;
}, },
......
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