Commit dfd0dce4 authored by Sergey Konovalov's avatar Sergey Konovalov

fix bug 34758

parent 427ce6c1
...@@ -2683,7 +2683,7 @@ Col.prototype = ...@@ -2683,7 +2683,7 @@ Col.prototype =
}, },
setWrap : function(val) setWrap : function(val)
{ {
var oRes = this.ws.workbook.oStyleManager.setShrinkToFit(this, val); var oRes = this.ws.workbook.oStyleManager.setWrap(this, val);
if(History.Is_On() && oRes.oldVal != oRes.newVal) if(History.Is_On() && oRes.oldVal != oRes.newVal)
History.Add(AscCommonExcel.g_oUndoRedoCol, AscCH.historyitem_RowCol_Wrap, this.ws.getId(), this._getUpdateRange(), new UndoRedoData_IndexSimpleProp(this.index, false, oRes.oldVal, oRes.newVal)); History.Add(AscCommonExcel.g_oUndoRedoCol, AscCH.historyitem_RowCol_Wrap, this.ws.getId(), this._getUpdateRange(), new UndoRedoData_IndexSimpleProp(this.index, false, oRes.oldVal, oRes.newVal));
}, },
...@@ -2962,7 +2962,7 @@ Row.prototype = ...@@ -2962,7 +2962,7 @@ Row.prototype =
}, },
setWrap : function(val) setWrap : function(val)
{ {
var oRes = this.ws.workbook.oStyleManager.setShrinkToFit(this, val); var oRes = this.ws.workbook.oStyleManager.setWrap(this, val);
if(History.Is_On() && oRes.oldVal != oRes.newVal) if(History.Is_On() && oRes.oldVal != oRes.newVal)
History.Add(AscCommonExcel.g_oUndoRedoRow, AscCH.historyitem_RowCol_Wrap, this.ws.getId(), this._getUpdateRange(), new UndoRedoData_IndexSimpleProp(this.index, true, oRes.oldVal, oRes.newVal)); History.Add(AscCommonExcel.g_oUndoRedoRow, AscCH.historyitem_RowCol_Wrap, this.ws.getId(), this._getUpdateRange(), new UndoRedoData_IndexSimpleProp(this.index, true, oRes.oldVal, oRes.newVal));
}, },
......
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