diff options
-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 |