Explorar o código

修复单元格渲染报错

xjj %!s(int64=2) %!d(string=hai) anos
pai
achega
5b72cd9c41
Modificáronse 1 ficheiros con 1 adicións e 0 borrados
  1. 1 0
      src/global/draw.js

+ 1 - 0
src/global/draw.js

@@ -794,6 +794,7 @@ function luckysheetDrawMain(scrollWidth, scrollHeight, drawWidth, drawHeight, of
 
         r = margeMaindata.r;
         c = margeMaindata.c;
+        if(r === undefined || c == undefined) break;
 
         let mainCell = Store.flowdata[r][c];