Commit ea6eecb3 authored by Alexander.Trofimov's avatar Alexander.Trofimov Committed by Alexander.Trofimov

Если нет стилей в документе, то добавим при инициализации дефалтовых

git-svn-id: svn://192.168.3.15/activex/AVS/Sources/TeamlabOffice/trunk/OfficeWeb@48039 954022d7-b5bf-4e40-9824-e11837661b57
parent 324dca5a
...@@ -7122,8 +7122,8 @@ function ReadDefTableStyles(wb, oOutput) ...@@ -7122,8 +7122,8 @@ function ReadDefTableStyles(wb, oOutput)
}; };
var length = stream.GetULongLE(); var length = stream.GetULongLE();
res = bcr.Read1(length, function(t,l){ var res = bcr.Read1(length, function(t,l){
return fReadStyles(t, l, oOutput); return fReadStyles(t, l, oOutput);
}); });
} }
...@@ -7235,7 +7235,17 @@ function ReadDefCellStyles(wb, oOutput) ...@@ -7235,7 +7235,17 @@ function ReadDefCellStyles(wb, oOutput)
return res; return res;
}; };
res = bcr.Read1(length, function (t, l) { var res = bcr.Read1(length, function (t, l) {
return fReadStyles(t, l, oOutput); return fReadStyles(t, l, oOutput);
}); });
// Если нет стилей в документе, то добавим
if (0 === wb.CellStyles.CustomStyles.length && 0 < oOutput.length) {
wb.CellStyles.CustomStyles.push(oOutput[0].clone());
wb.CellStyles.CustomStyles[0].XfId = 0;
}
// Если XfId не задан, то определим его
if (null == g_oDefaultXfId) {
g_oDefaultXfId = 0;
}
} }
\ No newline at end of file
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