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){
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
{
......
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