Commit 9b297574 authored by Igor.Zotov's avatar Igor.Zotov Committed by Alexander.Trofimov

+ к предудыщей правке

git-svn-id: svn://192.168.3.15/activex/AVS/Sources/TeamlabOffice/trunk/OfficeWeb@61177 954022d7-b5bf-4e40-9824-e11837661b57
parent d44977c2
...@@ -1531,7 +1531,7 @@ var gUndoInsDelCellsFlag = true; ...@@ -1531,7 +1531,7 @@ var gUndoInsDelCellsFlag = true;
curFilter.SortState.SortConditions[0].ConditionDescending = type; curFilter.SortState.SortConditions[0].ConditionDescending = type;
//сама сортировка //сама сортировка
ws.cellCommentator.sortComments(sortRange.sort(type, curCell.c1)); ws.cellCommentator.sortComments(sortRange.sort(type, activeCells.c1));
if(curFilter.TableStyleInfo) if(curFilter.TableStyleInfo)
t._setColorStyleTable(curFilter.Ref, curFilter); t._setColorStyleTable(curFilter.Ref, curFilter);
...@@ -1575,11 +1575,7 @@ var gUndoInsDelCellsFlag = true; ...@@ -1575,11 +1575,7 @@ var gUndoInsDelCellsFlag = true;
if(!cellId) if(!cellId)
cellId = Asc.Range(activeRange.startCol, filterRef.r1, activeRange.startCol, filterRef.r1); cellId = Asc.Range(activeRange.startCol, filterRef.r1, activeRange.startCol, filterRef.r1);
} }
else if(curFilter && filterRef.isIntersect(activeRange) && !filterRef.containsRange(activeRange))//если захвачена часть а/ф else//внутри а/ф либо без а/ф либо часть а/ф
{
return;
}
else//внутри а/ф либо без а/ф
{ {
ws.setSelectionInfo("sort", type); ws.setSelectionInfo("sort", type);
return; return;
...@@ -1607,9 +1603,7 @@ var gUndoInsDelCellsFlag = true; ...@@ -1607,9 +1603,7 @@ var gUndoInsDelCellsFlag = true;
activeCells = t._idToRange(cellId); activeCells = t._idToRange(cellId);
curCell = t._idToRange(cellId); newEndId = t._rangeToId(new Asc.Range(activeCells.c1, filterRef.r1, activeCells.c2, activeCells.r2));
curCell.r1 = filterRef.r1;
newEndId = t._rangeToId(curCell);
sortRange = ws.model.getRange3(filterRef.r1 + 1, filterRef.c1, filterRef.r2, filterRef.c2); sortRange = ws.model.getRange3(filterRef.r1 + 1, filterRef.c1, filterRef.r2, filterRef.c2);
if(isTurnOffHistory) if(isTurnOffHistory)
...@@ -2245,7 +2239,7 @@ var gUndoInsDelCellsFlag = true; ...@@ -2245,7 +2239,7 @@ var gUndoInsDelCellsFlag = true;
if(-1 !== tablePartId) if(-1 !== tablePartId)
{ {
var tablePart = aWs.TableParts[tablePartId]; var tablePart = aWs.TableParts[tablePartId];
if(tablePart.Ref && ((tablePart.AutoFilter && tablePart.AutoFilter.FilterColumns && tablePart.AutoFilter.FilterColumns.length) || (tablePart && tablePart.SortState && tablePart.SortState.SortConditions && tablePart.SortState.SortConditions[0]))) if(tablePart.Ref && ((tablePart.AutoFilter && tablePart.AutoFilter.FilterColumns && tablePart.AutoFilter.FilterColumns.length) || (tablePart && tablePart.AutoFilter && tablePart.SortState && tablePart.SortState.SortConditions && tablePart.SortState.SortConditions[0])))
result = {isFilterColumns: true, isAutoFilter: true}; result = {isFilterColumns: true, isAutoFilter: true};
else if(tablePart.Ref && tablePart.AutoFilter && tablePart.AutoFilter !== null) else if(tablePart.Ref && tablePart.AutoFilter && tablePart.AutoFilter !== null)
result = {isFilterColumns: false, isAutoFilter: true}; result = {isFilterColumns: false, isAutoFilter: 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