Преглед изворни кода

打印时autoheight的style有隐藏bug

TonyKang пре 5 година
родитељ
комит
801b57efd2
1 измењених фајлова са 1 додато и 1 уклоњено
  1. 1 1
      web/building_saas/report/js/rpt_print.js

+ 1 - 1
web/building_saas/report/js/rpt_print.js

@@ -89,7 +89,7 @@ let rptPrintHelper = {
 
 function getActualBorderStyle(cell, styles, mergeBorderStyle, pageBorderArea, borderStr) {
     let rst = styles[cell[JV.PROP_STYLE]][borderStr];
-    if (parseFloat(rst[JV.PROP_LINE_WEIGHT]) === 1) {
+    if (rst && parseFloat(rst[JV.PROP_LINE_WEIGHT]) === 1) {
         rst[JV.PROP_LINE_WEIGHT] = 0.5;
     }
     if (mergeBorderStyle) {