sc/source/ui/inc/content.hxx | 2 +- sc/source/ui/navipi/content.cxx | 5 +---- 2 files changed, 2 insertions(+), 5 deletions(-)
New commits: commit 891c7fbbf201b90ae65ca0a33e68b1f788cbb7ff Author: Noel Grandin <noel.gran...@collabora.co.uk> AuthorDate: Thu Mar 24 11:25:41 2022 +0200 Commit: Noel Grandin <noel.gran...@collabora.co.uk> CommitDate: Fri Mar 25 09:58:00 2022 +0100 loplugin:constantparam Change-Id: I3a3f78896a1483aa07d2ca2350a7c01ab860083a Reviewed-on: https://gerrit.libreoffice.org/c/core/+/132085 Tested-by: Jenkins Reviewed-by: Noel Grandin <noel.gran...@collabora.co.uk> diff --git a/sc/source/ui/inc/content.hxx b/sc/source/ui/inc/content.hxx index 2a31d1d38056..9cd7e977319d 100644 --- a/sc/source/ui/inc/content.hxx +++ b/sc/source/ui/inc/content.hxx @@ -153,7 +153,7 @@ public: const OUString& GetHiddenTitle() const { return aHiddenTitle; } /** Applies the navigator settings to the listbox. */ - void ApplyNavigatorSettings(bool bRestoreScrollPos = false, int nScrollPos = 0); + void ApplyNavigatorSettings(); /** Stores the current listbox state in the navigator settings. */ void StoreNavigatorSettings(); }; diff --git a/sc/source/ui/navipi/content.cxx b/sc/source/ui/navipi/content.cxx index c6fa3fcc7eab..2c8336fd3662 100644 --- a/sc/source/ui/navipi/content.cxx +++ b/sc/source/ui/navipi/content.cxx @@ -1548,7 +1548,7 @@ void ScContentTree::SelectEntryByName(const ScContentId nRoot, std::u16string_vi } } -void ScContentTree::ApplyNavigatorSettings(bool bRestorePos, int nScrollPos) +void ScContentTree::ApplyNavigatorSettings() { const ScNavigatorSettings* pSettings = ScNavigatorDlg::GetNavigatorSettings(); if( !pSettings ) @@ -1589,9 +1589,6 @@ void ScContentTree::ApplyNavigatorSettings(bool bRestorePos, int nScrollPos) // select if( nRootSel == nEntry ) { - if (bRestorePos) - m_xTreeView->vadjustment_set_value(nScrollPos); - std::unique_ptr<weld::TreeIter> xEntry; if (bExp && (nChildSel != SC_CONTENT_NOCHILD)) {