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

поправлен баг с пересылкой копии автофигуры в которой был какой-либо контент

git-svn-id: svn://192.168.3.15/activex/AVS/Sources/TeamlabOffice/trunk/OfficeWeb@51323 954022d7-b5bf-4e40-9824-e11837661b57
parent 8f78df61
...@@ -4823,8 +4823,9 @@ function BinaryPPTYLoader() ...@@ -4823,8 +4823,9 @@ function BinaryPPTYLoader()
if (_table != null) if (_table != null)
{ {
_graphic_frame.spPr.xfrm = _xfrm; _graphic_frame.spPr.xfrm = _xfrm;
_graphic_frame.nvGraphicFramePr = _nvGraphicFramePr; _graphic_frame.setSpPr(_graphic_frame.spPr);
_graphic_frame.graphicObject = _table; _graphic_frame.setNvSpPr(_nvGraphicFramePr);
_graphic_frame.setGraphicObject(_table);
} }
else if (_chart != null) else if (_chart != null)
{ {
...@@ -4988,9 +4989,9 @@ function BinaryPPTYLoader() ...@@ -4988,9 +4989,9 @@ function BinaryPPTYLoader()
var _table = new CTable(this.presentation.DrawingDocument, _graphic_frame, false, 0, 0, 0, _xfrm.extX, _xfrm.extY, rows, cols.length, cols); var _table = new CTable(this.presentation.DrawingDocument, _graphic_frame, false, 0, 0, 0, _xfrm.extX, _xfrm.extY, rows, cols.length, cols);
if (null != props) if (null != props)
{ {
_table.Pr = props.props; _table.Set_Pr(props.props);
_table.TableLook = props.look; _table.Set_TableLook(props.look);
_table.styleIndex = props.style; _table.Set_TableStyle(props.style);
} }
s.Seek2(_return_to_rows); s.Seek2(_return_to_rows);
...@@ -5025,7 +5026,7 @@ function BinaryPPTYLoader() ...@@ -5025,7 +5026,7 @@ function BinaryPPTYLoader()
{ {
case 0: case 0:
{ {
row.Pr.Height = new CTableRowHeight(s.GetULong() / 36000, heightrule_AtLeast); row.Set_Height(s.GetULong() / 36000, heightrule_AtLeast);
break; break;
} }
default: default:
......
...@@ -277,9 +277,12 @@ function CPPTXContentLoader() ...@@ -277,9 +277,12 @@ function CPPTXContentLoader()
var oBinary_DocumentTableReader = new Binary_DocumentTableReader(shape.textBoxContent, oThis.oReadResult, null, oThis.stream, false, oThis.oComments); var oBinary_DocumentTableReader = new Binary_DocumentTableReader(shape.textBoxContent, oThis.oReadResult, null, oThis.stream, false, oThis.oComments);
var nDocLength = oThis.stream.GetULongLE(); var nDocLength = oThis.stream.GetULongLE();
var content_arr = [];
oThis.bcr.Read1(nDocLength, function(t,l){ oThis.bcr.Read1(nDocLength, function(t,l){
return oBinary_DocumentTableReader.ReadDocumentContent(t,l, shape.textBoxContent.Content); return oBinary_DocumentTableReader.ReadDocumentContent(t,l, content_arr);
}); });
for(var i = 0, length = content_arr.length; i < length; ++i)
shape.textBoxContent.Internal_Content_Add(i, content_arr[i]);
s.pos = oThis.stream.pos; s.pos = oThis.stream.pos;
s.cur = oThis.stream.cur; s.cur = oThis.stream.cur;
......
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