[Libreoffice-commits] core.git: cui/source
Caolán McNamara (via logerrit)
logerrit at kemper.freedesktop.org
Tue Sep 24 10:30:43 UTC 2019
cui/source/tabpages/numfmt.cxx | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
New commits:
commit 6f9f94d5f06b1be4bbeeacf7dc69645627e69fa8
Author: Caolán McNamara <caolanm at redhat.com>
AuthorDate: Tue Sep 24 09:30:49 2019 +0100
Commit: Caolán McNamara <caolanm at redhat.com>
CommitDate: Tue Sep 24 12:29:40 2019 +0200
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 at redhat.com>
Tested-by: Caolán McNamara <caolanm at redhat.com>
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
More information about the Libreoffice-commits
mailing list