Commit 5289834d authored by Alexander.Trofimov's avatar Alexander.Trofimov Committed by Alexander.Trofimov

Правка от ревизии 54137: при изменении ширины колонки неправильные данные записывались в undo/redo

git-svn-id: svn://192.168.3.15/activex/AVS/Sources/TeamlabOffice/trunk/OfficeWeb@55272 954022d7-b5bf-4e40-9824-e11837661b57
parent 44beadac
......@@ -2519,7 +2519,9 @@ Woorksheet.prototype.setColWidth=function(width, start, stop){
col.hd = null;
var oNewProps = col.getWidthProp();
if(false == oOldProps.isEqual(oNewProps))
History.Add(g_oUndoRedoWorksheet, historyitem_Worksheet_ColProp, oThis.getId(), new Asc.Range(col, 0, col, gc_nMaxRow0), new UndoRedoData_IndexSimpleProp(col.index, false, oOldProps, oNewProps));
History.Add(g_oUndoRedoWorksheet, historyitem_Worksheet_ColProp, oThis.getId(),
new Asc.Range(col.index, 0, col.index, gc_nMaxRow0),
new UndoRedoData_IndexSimpleProp(col.index, false, oOldProps, oNewProps));
}
};
if(0 == start && gc_nMaxCol0 == stop)
......@@ -2567,7 +2569,9 @@ Woorksheet.prototype.setColHidden=function(bHidden, start, stop){
}
var oNewProps = col.getWidthProp();
if(false == oOldProps.isEqual(oNewProps))
History.Add(g_oUndoRedoWorksheet, historyitem_Worksheet_ColProp, oThis.getId(), new Asc.Range(col, 0, col, gc_nMaxRow0), new UndoRedoData_IndexSimpleProp(col.index, false, oOldProps, oNewProps));
History.Add(g_oUndoRedoWorksheet, historyitem_Worksheet_ColProp, oThis.getId(),
new Asc.Range(col.index, 0, col.index, gc_nMaxRow0),
new UndoRedoData_IndexSimpleProp(col.index, false, oOldProps, oNewProps));
}
};
if(0 != start && gc_nMaxCol0 == stop)
......@@ -2617,7 +2621,9 @@ Woorksheet.prototype.setColBestFit=function(bBestFit, width, start, stop){
col.width = width;
var oNewProps = col.getWidthProp();
if(false == oOldProps.isEqual(oNewProps))
History.Add(g_oUndoRedoWorksheet, historyitem_Worksheet_ColProp, oThis.getId(), new Asc.Range(col, 0, col, gc_nMaxRow0), new UndoRedoData_IndexSimpleProp(col.index, false, oOldProps, oNewProps));
History.Add(g_oUndoRedoWorksheet, historyitem_Worksheet_ColProp, oThis.getId(),
new Asc.Range(col.index, 0, col.index, gc_nMaxRow0),
new UndoRedoData_IndexSimpleProp(col.index, false, oOldProps, oNewProps));
};
if(0 != start && gc_nMaxCol0 == stop)
{
......
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