summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--vcl/source/app/salvtables.cxx5
1 files changed, 3 insertions, 2 deletions
diff --git a/vcl/source/app/salvtables.cxx b/vcl/source/app/salvtables.cxx
index 7fc78bf5ef0b..0a53f050f1aa 100644
--- a/vcl/source/app/salvtables.cxx
+++ b/vcl/source/app/salvtables.cxx
@@ -4517,10 +4517,11 @@ public:
return pVertScrollBar->GetThumbPos();
}
- virtual void vadjustment_set_value(int value) override
+ virtual void vadjustment_set_value(int nValue) override
{
ScrollBar* pVertScrollBar = m_xTreeView->GetVScroll();
- pVertScrollBar->SetThumbPos(value);
+ auto nDelta = pVertScrollBar->GetThumbPos() - nValue;
+ m_xTreeView->ScrollOutputArea(nDelta);
}
virtual ~SalInstanceTreeView() override