diff options
-rw-r--r-- | sc/source/ui/view/gridwin.cxx | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/sc/source/ui/view/gridwin.cxx b/sc/source/ui/view/gridwin.cxx index 8703ae4150fd..69fd520a7a21 100644 --- a/sc/source/ui/view/gridwin.cxx +++ b/sc/source/ui/view/gridwin.cxx @@ -812,7 +812,6 @@ void ScGridWindow::UpdateAutoFilterFromMenu(AutoFilterMode eMode) case SortAscending: case SortDescending: { - SCTAB nTab = pViewData->GetTabNo(); SCCOL nCol = rPos.Col(); ScSortParam aSortParam; pDBData->GetSortParam(aSortParam); @@ -820,8 +819,7 @@ void ScGridWindow::UpdateAutoFilterFromMenu(AutoFilterMode eMode) // out of bound return; - bool bHasHeader = pDoc->HasColHeader( - aSortParam.nCol1, aSortParam.nRow1, aSortParam.nCol2, aSortParam.nRow2, nTab); + bool bHasHeader = pDBData->HasHeader(); aSortParam.bHasHeader = bHasHeader; aSortParam.bByRow = true; |