summaryrefslogtreecommitdiff
path: root/sc
diff options
context:
space:
mode:
authorCaolán McNamara <caolanm@redhat.com>2019-02-12 09:55:25 +0000
committerCaolán McNamara <caolanm@redhat.com>2019-02-12 12:48:10 +0100
commita8f21e120b1073d7019d41e85cc9a15104ed5c93 (patch)
treec550831e03d3db20fdcccce8e1235fe6c73b1fd6 /sc
parentde0651551b13e58e4a37794e1da6649629be3fc0 (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 'sc')
-rw-r--r--sc/source/ui/miscdlgs/protectiondlg.cxx2
-rw-r--r--sc/source/ui/miscdlgs/solveroptions.cxx2
2 files changed, 2 insertions, 2 deletions
diff --git a/sc/source/ui/miscdlgs/protectiondlg.cxx b/sc/source/ui/miscdlgs/protectiondlg.cxx
index 0f3e1384ae3c..f363f412a423 100644
--- a/sc/source/ui/miscdlgs/protectiondlg.cxx
+++ b/sc/source/ui/miscdlgs/protectiondlg.cxx
@@ -62,7 +62,7 @@ ScTableProtectionDlg::ScTableProtectionDlg(weld::Window* pParent)
m_aDeleteRows = m_xDeleteRows->get_label();
std::vector<int> aWidths;
- aWidths.push_back(m_xOptionsListBox->get_approximate_digit_width() * 3 + 6);
+ aWidths.push_back(m_xOptionsListBox->get_checkbox_column_width());
m_xOptionsListBox->set_column_fixed_widths(aWidths);
Init();
diff --git a/sc/source/ui/miscdlgs/solveroptions.cxx b/sc/source/ui/miscdlgs/solveroptions.cxx
index eaedf2ab296f..77ad31bc86e9 100644
--- a/sc/source/ui/miscdlgs/solveroptions.cxx
+++ b/sc/source/ui/miscdlgs/solveroptions.cxx
@@ -71,7 +71,7 @@ ScSolverOptionsDialog::ScSolverOptionsDialog(weld::Window* pParent,
m_xLbSettings->get_height_rows(6));
std::vector<int> aWidths;
- aWidths.push_back(m_xLbSettings->get_approximate_digit_width() * 3 + 6);
+ aWidths.push_back(m_xLbSettings->get_checkbox_column_width());
m_xLbSettings->set_column_fixed_widths(aWidths);
m_xLbEngine->connect_changed( LINK( this, ScSolverOptionsDialog, EngineSelectHdl ) );