From 50b79b6f706165cca0bd4049e513c82d7d177d15 Mon Sep 17 00:00:00 2001 From: "Igor.Zotov" <Igor.Zotov@OnlyOffice.com> Date: Mon, 31 Aug 2015 09:50:15 +0000 Subject: [PATCH] =?UTF-8?q?=D0=B2=D0=BD=D1=91=D1=81=20=D0=B8=D0=B7=D0=BC?= =?UTF-8?q?=D0=B5=D0=BD=D0=B5=D0=BD=D0=B8=D1=8F=20=D0=B2=20=D1=84-=D0=B8?= =?UTF-8?q?=D1=8E=20setRowHidden?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit git-svn-id: svn://192.168.3.15/activex/AVS/Sources/TeamlabOffice/trunk/OfficeWeb@64403 954022d7-b5bf-4e40-9824-e11837661b57 --- Excel/model/Workbook.js | 14 ++++++++------ 1 file changed, 8 insertions(+), 6 deletions(-) diff --git a/Excel/model/Workbook.js b/Excel/model/Workbook.js index 74463855d..502f7ef4c 100644 --- a/Excel/model/Workbook.js +++ b/Excel/model/Workbook.js @@ -3858,18 +3858,20 @@ Woorksheet.prototype.setRowHidden=function(bHidden, start, stop){ else row.flags &= ~g_nRowFlag_hd; - if(row.index === stop) + if(row.index === stop || row.index === gc_nMaxRow0) { if(isAddPrevBlock) History.Add(g_oUndoRedoWorksheet, historyitem_Worksheet_RowHide, oThis.getId(), row._getUpdateRange(), new UndoRedoData_FromToRowCol(bHidden, startIndex, row.index)); else - { History.Add(g_oUndoRedoWorksheet, historyitem_Worksheet_RowHide, oThis.getId(), row._getUpdateRange(), new UndoRedoData_FromToRowCol(bHidden, row.index, row.index)); - startIndex = row.index; - } + + isAddPrevBlock = false; + } + else if(!isAddPrevBlock) + { + startIndex = row.index; + isAddPrevBlock = true; } - - isAddPrevBlock = true; } else { -- 2.30.9