Commit 50b79b6f authored by Igor.Zotov's avatar Igor.Zotov Committed by Alexander.Trofimov

внёс изменения в ф-ию setRowHidden

git-svn-id: svn://192.168.3.15/activex/AVS/Sources/TeamlabOffice/trunk/OfficeWeb@64403 954022d7-b5bf-4e40-9824-e11837661b57
parent 068b8ac0
...@@ -3858,18 +3858,20 @@ Woorksheet.prototype.setRowHidden=function(bHidden, start, stop){ ...@@ -3858,18 +3858,20 @@ Woorksheet.prototype.setRowHidden=function(bHidden, start, stop){
else else
row.flags &= ~g_nRowFlag_hd; row.flags &= ~g_nRowFlag_hd;
if(row.index === stop) if(row.index === stop || row.index === gc_nMaxRow0)
{ {
if(isAddPrevBlock) if(isAddPrevBlock)
History.Add(g_oUndoRedoWorksheet, historyitem_Worksheet_RowHide, oThis.getId(), row._getUpdateRange(), new UndoRedoData_FromToRowCol(bHidden, startIndex, row.index)); History.Add(g_oUndoRedoWorksheet, historyitem_Worksheet_RowHide, oThis.getId(), row._getUpdateRange(), new UndoRedoData_FromToRowCol(bHidden, startIndex, row.index));
else else
{
History.Add(g_oUndoRedoWorksheet, historyitem_Worksheet_RowHide, oThis.getId(), row._getUpdateRange(), new UndoRedoData_FromToRowCol(bHidden, row.index, row.index)); 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 else
{ {
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment