Commit 291dbfd8 authored by Alexander.Trofimov's avatar Alexander.Trofimov Committed by Alexander.Trofimov

DefaultColWidth если ее нет писать не нужно (иначе теряется смысл BaseColWidth)

git-svn-id: svn://192.168.3.15/activex/AVS/Sources/TeamlabOffice/trunk/OfficeWeb@47452 954022d7-b5bf-4e40-9824-e11837661b57
parent 4a4c421a
...@@ -2311,17 +2311,12 @@ function BinaryWorksheetsTableWriter(memory, wb, oSharedStrings, oDrawings, aDxf ...@@ -2311,17 +2311,12 @@ function BinaryWorksheetsTableWriter(memory, wb, oSharedStrings, oDrawings, aDxf
}; };
this.WriteSheetFormatPr = function(ws) this.WriteSheetFormatPr = function(ws)
{ {
var dDefaultwidth = ws.dDefaultwidth; if(null !== ws.dDefaultwidth) {
if(null == ws.dDefaultwidth)
dDefaultwidth = gc_dDefaultColWidthCharsAttribute;
if(null != dDefaultwidth)
{
this.memory.WriteByte(c_oSerSheetFormatPrTypes.DefaultColWidth); this.memory.WriteByte(c_oSerSheetFormatPrTypes.DefaultColWidth);
this.memory.WriteByte(c_oSerPropLenType.Double); this.memory.WriteByte(c_oSerPropLenType.Double);
this.memory.WriteDouble2(dDefaultwidth); this.memory.WriteDouble2(ws.dDefaultwidth);
} }
if(null != ws.dDefaultheight) if(null !== ws.dDefaultheight) {
{
this.memory.WriteByte(c_oSerSheetFormatPrTypes.DefaultRowHeight); this.memory.WriteByte(c_oSerSheetFormatPrTypes.DefaultRowHeight);
this.memory.WriteByte(c_oSerPropLenType.Double); this.memory.WriteByte(c_oSerPropLenType.Double);
this.memory.WriteDouble2(ws.dDefaultheight); this.memory.WriteDouble2(ws.dDefaultheight);
......
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