Commit 8a483880 authored by Alexander.Trofimov's avatar Alexander.Trofimov Committed by Alexander.Trofimov

Возвращаю null, если нет стилей (для изображения)

git-svn-id: svn://192.168.3.15/activex/AVS/Sources/TeamlabOffice/trunk/OfficeWeb@48013 954022d7-b5bf-4e40-9824-e11837661b57
parent 3b96d147
...@@ -829,7 +829,7 @@ ...@@ -829,7 +829,7 @@
++styleIndex; ++styleIndex;
} }
this.defaultStylesImage = oCanvas.toDataURL("image/png"); this.defaultStylesImage = (0 === styleIndex) ? null : oCanvas.toDataURL("image/png");
}, },
generateDocumentStyles: function (cellStylesAll, fmgrGraphics, stringRenderer) { generateDocumentStyles: function (cellStylesAll, fmgrGraphics, stringRenderer) {
var nDocumentStylesCount = cellStylesAll.getCustomStylesCount(); var nDocumentStylesCount = cellStylesAll.getCustomStylesCount();
...@@ -855,7 +855,7 @@ ...@@ -855,7 +855,7 @@
++styleIndex; ++styleIndex;
} }
this.docStylesImage = oCanvas.toDataURL("image/png"); this.docStylesImage = (0 === styleIndex) ? null : oCanvas.toDataURL("image/png");
}, },
drawStyle: function (oGraphics, stringRenderer, oStyle, nIndex) { drawStyle: function (oGraphics, stringRenderer, oStyle, nIndex) {
var nOffsetY = nIndex * this.styleThumbnailHeightPt; var nOffsetY = nIndex * this.styleThumbnailHeightPt;
......
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