From 588e6102b28f5012ceb33a1a5797a3f9ca84197e Mon Sep 17 00:00:00 2001 From: yangyong8650 Date: Thu, 1 Apr 2021 14:18:32 +0800 Subject: [PATCH] =?UTF-8?q?=E6=A0=BC=E5=BC=8F=E5=88=B7=E5=AD=97=E4=BD=93?= =?UTF-8?q?=E5=8F=98=E5=8C=96=E5=90=8E=E9=87=8D=E6=96=B0=E8=AE=A1=E7=AE=97?= =?UTF-8?q?=E8=A1=8C=E9=AB=98?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/controllers/selection.js | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/src/controllers/selection.js b/src/controllers/selection.js index 021f0c4..1e28a39 100644 --- a/src/controllers/selection.js +++ b/src/controllers/selection.js @@ -1857,8 +1857,14 @@ const selection = { jfrefreshgrid(d, Store.luckysheet_select_save, allParam); } else{ + // 选区格式刷存在超出边界的情况 + if(maxh >= d.length){ + maxh = d.length - 1; + } + cfg = rowlenByRange(d, minh, maxh, cfg); //更新行高 let allParam = { "cfg": cfg, + "RowlChange": true, "cdformat": cdformat, "dataVerification": dataVerification }