diff --git a/vcl/source/app/salvtables.cxx b/vcl/source/app/salvtables.cxx index 0e4908e8fdb6..c0f203df68bd 100644 --- a/vcl/source/app/salvtables.cxx +++ b/vcl/source/app/salvtables.cxx @@ -4519,9 +4519,7 @@ public: virtual void vadjustment_set_value(int nValue) override { - ScrollBar* pVertScrollBar = m_xTreeView->GetVScroll(); - auto nDelta = pVertScrollBar->GetThumbPos() - nValue; - m_xTreeView->ScrollOutputArea(nDelta); + m_xTreeView->ScrollToAbsPos(nValue); } virtual ~SalInstanceTreeView() override