From 0940b9bdc1c4f8cecf507f4997048cec3b81f6dd Mon Sep 17 00:00:00 2001 From: flowerField Date: Thu, 3 Jun 2021 16:52:59 +0800 Subject: [PATCH] =?UTF-8?q?fix=20=E4=BF=AE=E5=A4=8Dbug#672?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/global/getRowlen.js | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/src/global/getRowlen.js b/src/global/getRowlen.js index 2ce7b69..1ef292d 100644 --- a/src/global/getRowlen.js +++ b/src/global/getRowlen.js @@ -1,6 +1,6 @@ import { luckysheetfontformat } from '../utils/util'; import menuButton from '../controllers/menuButton'; -import { getcellvalue,checkstatusByCell } from './getdata'; +import { checkstatusByCell } from './getdata'; import { colLocationByIndex } from './location'; import { hasChinaword, isRealNull,checkWordByteLength } from './validate'; import { isInlineStringCell } from '../controllers/inlineString'; @@ -77,6 +77,10 @@ function rowlenByRange(d, r1, r2, cfg) { if(currentRowLen != Store.defaultrowlen){ cfg_clone["rowlen"][r] = currentRowLen; + }else{ + if(cfg["rowlen"][r]){ + cfg_clone["rowlen"][r] = cfg["rowlen"][r] + } } }