Commit 704645f5 authored by Igor.Zotov's avatar Igor.Zotov Committed by Alexander.Trofimov

+ rev.63764

git-svn-id: svn://192.168.3.15/activex/AVS/Sources/TeamlabOffice/trunk/OfficeWeb@63768 954022d7-b5bf-4e40-9824-e11837661b57
parent 949b5db8
...@@ -342,9 +342,12 @@ var maxIndividualValues = 10000; ...@@ -342,9 +342,12 @@ var maxIndividualValues = 10000;
//history //history
t._addHistoryObj({Ref: filterRange}, historyitem_AutoFilter_Add, t._addHistoryObj({Ref: filterRange}, historyitem_AutoFilter_Add,
{activeCells: filterRange, styleName: styleName, addFormatTableOptionsObj: addFormatTableOptionsObj}, null, filterRange, bWithoutFilter); {activeCells: filterRange, styleName: styleName, addFormatTableOptionsObj: addFormatTableOptionsObj}, null, filterRange, bWithoutFilter);
History.SetSelectionRedo(filterRange);
} }
//updates //updates
if(styleName && addNameColumn)
ws.setSelection(filterRange);
ws._onUpdateFormatTable(filterRange, !(styleName), true); ws._onUpdateFormatTable(filterRange, !(styleName), true);
History.EndTransaction(); History.EndTransaction();
...@@ -397,7 +400,6 @@ var maxIndividualValues = 10000; ...@@ -397,7 +400,6 @@ var maxIndividualValues = 10000;
{activeCells: activeRange}, null, cloneFilter.Ref); {activeCells: activeRange}, null, cloneFilter.Ref);
//updates //updates
t.drawAutoF(filterRange); t.drawAutoF(filterRange);
t._setStyleTablePartsAfterOpenRows(filterRange); t._setStyleTablePartsAfterOpenRows(filterRange);
ws._onUpdateFormatTable(filterRange, false, true); ws._onUpdateFormatTable(filterRange, false, true);
...@@ -4496,10 +4498,24 @@ var maxIndividualValues = 10000; ...@@ -4496,10 +4498,24 @@ var maxIndividualValues = 10000;
{ {
for(var i = 0; i < aWs.TableParts.length; i++) for(var i = 0; i < aWs.TableParts.length; i++)
{ {
if((aWs.TableParts[i].Ref.c1 < range.c1 || aWs.TableParts[i].Ref.c2 > range.c2) && aWs.TableParts[i].Ref.r1 >= range.r2) var tableRef = aWs.TableParts[i].Ref;
if(tableRef.r1 >= range.r2)
{ {
result = true; if(range.c1 < tableRef.c1 && range.c2 < tableRef.c2 && range.c2 >= tableRef.c1)
break; {
result = true;
break;
}
else if(range.c1 > tableRef.c1 && range.c2 > tableRef.c2 && range.c1 >= tableRef.c1)
{
result = true;
break;
}
else if((range.c1 > tableRef.c1 && range.c2 <= tableRef.c2) || (range.c1 >= tableRef.c1 && range.c2 < tableRef.c2))
{
result = true;
break;
}
} }
} }
} }
......
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