Commit 52155ec0 authored by Alexander.Trofimov's avatar Alexander.Trofimov Committed by Alexander.Trofimov

Поправил проблему с select-ом для добавления форматированной таблицы.

Баг http://bugzserver/show_bug.cgi?id=26772

git-svn-id: svn://192.168.3.15/activex/AVS/Sources/TeamlabOffice/trunk/OfficeWeb@58658 954022d7-b5bf-4e40-9824-e11837661b57
parent 80dd1cb6
......@@ -9898,13 +9898,15 @@
return false;
History.Create_NewPoint();
var oSelection = History.GetSelection();
if (null != oSelection) {
oSelection = oSelection.clone();
oSelection.assign(col, 0, col, gc_nMaxRow0);
oSelection.type = c_oAscSelectionType.RangeCol;
History.SetSelection(oSelection);
History.SetSelectionRedo(oSelection);
if (!onlyIfMore) {
var oSelection = History.GetSelection();
if (null != oSelection) {
oSelection = oSelection.clone();
oSelection.assign(col, 0, col, gc_nMaxRow0);
oSelection.type = c_oAscSelectionType.RangeCol;
History.SetSelection(oSelection);
History.SetSelectionRedo(oSelection);
}
}
History.StartTransaction();
// Выставляем, что это bestFit
......@@ -10788,9 +10790,9 @@
// При добавлении форматированной таблицы расширяем, автоподбор по названию столбца
WorksheetView.prototype._onEndAddFormatTable = function (range) {
var i, r = range.r1, bIsUpdate = false, t = this;
var i, r = range.r1, bIsUpdate = false;
for (i = range.c1; i <= range.c2; ++i) {
if (t.onChangeWidthCallback(i, r, r, /*onlyIfMore*/true)) {
if (this.onChangeWidthCallback(i, r, r, /*onlyIfMore*/true)) {
this._cleanCache(new asc_Range(i, 0, i, this.rows.length - 1));
bIsUpdate = true;
}
......
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