Commit 32f66324 authored by SergeyLuzyanin's avatar SergeyLuzyanin

writing connectors bug; add SkipRecord to each default

parent 069febbb
This diff is collapsed.
...@@ -2896,12 +2896,12 @@ function CBinaryFileWriter() ...@@ -2896,12 +2896,12 @@ function CBinaryFileWriter()
} }
else{ else{
oThis.StartRecord(1); oThis.StartRecord(1);
}
oThis.WriteUChar(g_nodeAttributeStart); oThis.WriteUChar(g_nodeAttributeStart);
oThis._WriteBool2(0, shape.attrUseBgFill); oThis._WriteBool2(0, shape.attrUseBgFill);
oThis.WriteUChar(g_nodeAttributeEnd); oThis.WriteUChar(g_nodeAttributeEnd);
}
shape.spPr.WriteXfrm = shape.spPr.xfrm; shape.spPr.WriteXfrm = shape.spPr.xfrm;
...@@ -4782,11 +4782,16 @@ function CBinaryFileWriter() ...@@ -4782,11 +4782,16 @@ function CBinaryFileWriter()
this.WriteShape = function(shape, Document, oMapCommentId, oNumIdMap, copyParams, saveParams) this.WriteShape = function(shape, Document, oMapCommentId, oNumIdMap, copyParams, saveParams)
{ {
var _writer = this.BinaryFileWriter; var _writer = this.BinaryFileWriter;
_writer.StartRecord(1);
if(shape.getObjectType() === AscDFH.historyitem_type_Cnx){
_writer.StartRecord(3);
}
else{
_writer.StartRecord(1);
_writer.WriteUChar(AscCommon.g_nodeAttributeStart); _writer.WriteUChar(AscCommon.g_nodeAttributeStart);
_writer._WriteBool2(0, shape.attrUseBgFill); _writer._WriteBool2(0, shape.attrUseBgFill);
_writer.WriteUChar(AscCommon.g_nodeAttributeEnd); _writer.WriteUChar(AscCommon.g_nodeAttributeEnd);
}
shape.spPr.WriteXfrm = shape.spPr.xfrm; shape.spPr.WriteXfrm = shape.spPr.xfrm;
......
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