diff options
author | Caolán McNamara <caolanm@redhat.com> | 2019-03-12 16:46:56 +0000 |
---|---|---|
committer | Caolán McNamara <caolanm@redhat.com> | 2019-03-13 09:53:14 +0100 |
commit | fdc44bd929f038182dda4ea951f3b70dfc67f8d1 (patch) | |
tree | 9bc63614a2bcb7754d5c288e817460517609ba26 /vcl/source | |
parent | 8743247493ba90098e3e32cf30de0e8995569852 (diff) |
weld DbRegistrationOptionsPage
Change-Id: I88c1129f50d9f9cbef9970f1a9453641fc87e8fd
Reviewed-on: https://gerrit.libreoffice.org/69135
Tested-by: Jenkins
Reviewed-by: Caolán McNamara <caolanm@redhat.com>
Tested-by: Caolán McNamara <caolanm@redhat.com>
Diffstat (limited to 'vcl/source')
-rw-r--r-- | vcl/source/app/salvtables.cxx | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/vcl/source/app/salvtables.cxx b/vcl/source/app/salvtables.cxx index 815be92d1241..3a0625c2fc05 100644 --- a/vcl/source/app/salvtables.cxx +++ b/vcl/source/app/salvtables.cxx @@ -2266,6 +2266,9 @@ public: virtual int get_column_width(int nColumn) const override { + LclHeaderTabListBox* pHeaderBox = dynamic_cast<LclHeaderTabListBox*>(m_xTreeView.get()); + if (HeaderBar* pHeaderBar = pHeaderBox ? pHeaderBox->GetHeaderBar() : nullptr) + return pHeaderBar->GetItemSize(pHeaderBar->GetItemId(nColumn)); // GetTab(0) gives the position of the bitmap which is automatically inserted by the TabListBox. // So the first text column's width is Tab(2)-Tab(1). auto nWidthPixel = m_xTreeView->GetLogicTab(nColumn + 2) - m_xTreeView->GetLogicTab(nColumn + 1); |