diff options
author | Caolán McNamara <caolanm@redhat.com> | 2019-09-24 09:30:49 +0100 |
---|---|---|
committer | Caolán McNamara <caolanm@redhat.com> | 2019-09-24 12:29:40 +0200 |
commit | 6f9f94d5f06b1be4bbeeacf7dc69645627e69fa8 (patch) | |
tree | d5b7a1175f717acaa116bc8ae7006f43dd96781b /cui | |
parent | acfb28d572201396bbe60e3824ccab28567d6a74 (diff) |
approximate_char_width -> get_approximate_digit_width
Change-Id: Ic78d4d9ec6a7604085903b347a7a06926ab8d983
Reviewed-on: https://gerrit.libreoffice.org/79437
Tested-by: Jenkins
Reviewed-by: Caolán McNamara <caolanm@redhat.com>
Tested-by: Caolán McNamara <caolanm@redhat.com>
Diffstat (limited to 'cui')
-rw-r--r-- | cui/source/tabpages/numfmt.cxx | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/cui/source/tabpages/numfmt.cxx b/cui/source/tabpages/numfmt.cxx index 7052e60f0af6..1e0493a2eadf 100644 --- a/cui/source/tabpages/numfmt.cxx +++ b/cui/source/tabpages/numfmt.cxx @@ -222,7 +222,7 @@ SvxNumberFormatTabPage::SvxNumberFormatTabPage(TabPageParent pParent, for (size_t i = 0; i < SAL_N_ELEMENTS(NUM_CATEGORIES); ++i) m_xLbCategory->append_text(CuiResId(NUM_CATEGORIES[i])); - auto nWidth = approximate_char_width() * 26; + auto nWidth = m_xLbCategory->get_approximate_digit_width() * 22; m_xLbCategory->set_size_request(nWidth, m_xLbCategory->get_height_rows(7)); m_xLbFormat->set_size_request(nWidth, m_xLbFormat->get_height_rows(5)); m_xLbCurrency->set_size_request(nWidth, -1); // force using (narrower) width of its LbFormat sibling |