diff options
author | Caolán McNamara <caolanm@redhat.com> | 2019-02-12 09:55:25 +0000 |
---|---|---|
committer | Caolán McNamara <caolanm@redhat.com> | 2019-02-12 12:48:10 +0100 |
commit | a8f21e120b1073d7019d41e85cc9a15104ed5c93 (patch) | |
tree | c550831e03d3db20fdcccce8e1235fe6c73b1fd6 /sw | |
parent | de0651551b13e58e4a37794e1da6649629be3fc0 (diff) |
merge together as get_checkbox_column_width
Change-Id: I183d2d94ab60c128b136674ef40eeb30057b281c
Reviewed-on: https://gerrit.libreoffice.org/67714
Tested-by: Jenkins
Reviewed-by: Caolán McNamara <caolanm@redhat.com>
Tested-by: Caolán McNamara <caolanm@redhat.com>
Diffstat (limited to 'sw')
-rw-r--r-- | sw/source/ui/config/optload.cxx | 2 | ||||
-rw-r--r-- | sw/source/ui/index/cnttab.cxx | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/sw/source/ui/config/optload.cxx b/sw/source/ui/config/optload.cxx index 1584ea6d50ec..ee185cbeac53 100644 --- a/sw/source/ui/config/optload.cxx +++ b/sw/source/ui/config/optload.cxx @@ -490,7 +490,7 @@ SwCaptionOptPage::SwCaptionOptPage(TabPageParent pParent, const SfxItemSet& rSet m_xCategoryBox->connect_entry_insert_text(LINK(this, SwCaptionOptPage, TextFilterHdl)); std::vector<int> aWidths; - aWidths.push_back(m_xCheckLB->get_approximate_digit_width() * 3 + 6); + aWidths.push_back(m_xCheckLB->get_checkbox_column_width()); m_xCheckLB->set_column_fixed_widths(aWidths); SwStyleNameMapper::FillUIName(RES_POOLCOLL_LABEL_ABB, m_sIllustration); diff --git a/sw/source/ui/index/cnttab.cxx b/sw/source/ui/index/cnttab.cxx index a521961dc243..ce4ca2867a05 100644 --- a/sw/source/ui/index/cnttab.cxx +++ b/sw/source/ui/index/cnttab.cxx @@ -781,7 +781,7 @@ SwTOXSelectTabPage::SwTOXSelectTabPage(TabPageParent pParent, const SfxItemSet& sAddStyleContent = m_xAddStylesCB->get_label(); std::vector<int> aWidths; - aWidths.push_back(m_xFromObjCLB->get_approximate_digit_width() * 3 + 6); + aWidths.push_back(m_xFromObjCLB->get_checkbox_column_width()); m_xFromObjCLB->set_column_fixed_widths(aWidths); for (size_t i = 0; i < SAL_N_ELEMENTS(RES_SRCTYPES); ++i) |