diff options
author | Caolán McNamara <caolanm@redhat.com> | 2018-03-16 12:03:58 +0000 |
---|---|---|
committer | Caolán McNamara <caolanm@redhat.com> | 2018-03-16 21:29:45 +0100 |
commit | ca1ed645036cab9ba5e94a9d2e22ef8110e852e0 (patch) | |
tree | 4f5978e837111a395f7f974ee65e73ea270b78a2 /sfx2/source/doc/new.cxx | |
parent | d416fa9a212e0421a7c925507ddee07132f3cab3 (diff) |
use digit width instead of char width
its the same across backends
Change-Id: I37c83cbf1139babcd014c7cfdee06a13bea845c7
Reviewed-on: https://gerrit.libreoffice.org/51423
Tested-by: Jenkins <ci@libreoffice.org>
Reviewed-by: Caolán McNamara <caolanm@redhat.com>
Tested-by: Caolán McNamara <caolanm@redhat.com>
Diffstat (limited to 'sfx2/source/doc/new.cxx')
-rw-r--r-- | sfx2/source/doc/new.cxx | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/sfx2/source/doc/new.cxx b/sfx2/source/doc/new.cxx index be99751c9a05..ef6fbf939a93 100644 --- a/sfx2/source/doc/new.cxx +++ b/sfx2/source/doc/new.cxx @@ -253,7 +253,7 @@ SfxNewFileDialog::SfxNewFileDialog(weld::Window *pParent, SfxNewFileDialogMode n , m_sLoadTemplate(m_xAltTitleFt->get_label()) , m_nFlags(nFlags) { - const int nWidth = m_xRegionLb->get_approximate_char_width() * 32; + const int nWidth = m_xRegionLb->get_approximate_digit_width() * 32; const int nHeight = m_xRegionLb->get_height_rows(8); m_xRegionLb->set_size_request(nWidth, nHeight); m_xTemplateLb->set_size_request(nWidth, nHeight); |