|
@@ -798,7 +798,7 @@ const projTreeObj = {
|
|
|
x = x + (node.depth() + 1) * indent + node.depth() * levelIndent + imgWidth + 3;
|
|
|
w = w - (node.depth() + 1) * indent - node.depth() * levelIndent - imgWidth - 3;
|
|
|
GC.Spread.Sheets.CellTypes.Text.prototype.paint.apply(this, arguments);
|
|
|
- if (node.data.shareInfo.length > 0) {
|
|
|
+ if (node.data.shareInfo && node.data.shareInfo.length > 0) {
|
|
|
let nowX = Math.floor(x) + w - 20;
|
|
|
let nowY = Math.floor((y + (y + h)) / 2);
|
|
|
ctx.drawImage(shareImg, nowX + 3, nowY - 7, shareImgWidth,shareImgHeight);
|