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;
//history
t._addHistoryObj({Ref: filterRange}, historyitem_AutoFilter_Add,
{activeCells: filterRange, styleName: styleName, addFormatTableOptionsObj: addFormatTableOptionsObj}, null, filterRange, bWithoutFilter);
History.SetSelectionRedo(filterRange);
}
//updates
if(styleName && addNameColumn)
ws.setSelection(filterRange);
ws._onUpdateFormatTable(filterRange, !(styleName), true);
History.EndTransaction();
......@@ -397,7 +400,6 @@ var maxIndividualValues = 10000;
{activeCells: activeRange}, null, cloneFilter.Ref);
//updates
t.drawAutoF(filterRange);
t._setStyleTablePartsAfterOpenRows(filterRange);
ws._onUpdateFormatTable(filterRange, false, true);
......@@ -4496,11 +4498,25 @@ var maxIndividualValues = 10000;
{
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)
{
if(range.c1 < tableRef.c1 && range.c2 < tableRef.c2 && range.c2 >= tableRef.c1)
{
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