diff options
author | Caolán McNamara <caolanm@redhat.com> | 2019-12-17 09:45:11 +0000 |
---|---|---|
committer | Caolán McNamara <caolanm@redhat.com> | 2019-12-17 13:35:43 +0100 |
commit | 253f4ad388f3687140c2c5a03f895b326593d728 (patch) | |
tree | a59c8c79eba6255832d83728f1da348e743c8c63 /sw/source/ui/index | |
parent | 7a736cd3b7d3bc504dfc2ebea0cb55101d572610 (diff) |
make approximate_char_width private and use approximate_digit_width
Change-Id: I063cb5b9823d374014fd2c8129eba53384b96870
Reviewed-on: https://gerrit.libreoffice.org/85273
Tested-by: Jenkins
Reviewed-by: Caolán McNamara <caolanm@redhat.com>
Tested-by: Caolán McNamara <caolanm@redhat.com>
Diffstat (limited to 'sw/source/ui/index')
-rw-r--r-- | sw/source/ui/index/cnttab.cxx | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/sw/source/ui/index/cnttab.cxx b/sw/source/ui/index/cnttab.cxx index 2aa0afdf547d..40a581b4abbe 100644 --- a/sw/source/ui/index/cnttab.cxx +++ b/sw/source/ui/index/cnttab.cxx @@ -3650,8 +3650,8 @@ std::vector<long> SwEntryBrowseBox::GetOptimalColWidths() const { std::vector<long> aWidths; - long nStandardColMinWidth = approximate_char_width() * 16; - long nYesNoWidth = approximate_char_width() * 5; + long nStandardColMinWidth = approximate_digit_width() * 15; + long nYesNoWidth = approximate_digit_width() * 5; nYesNoWidth = std::max(nYesNoWidth, GetTextWidth(m_sYes)); nYesNoWidth = std::max(nYesNoWidth, GetTextWidth(m_sNo)); for (sal_uInt16 i = 1; i < 6; i++) |