diff options
author | Roman Kuznetsov <antilibreoffice@gmail.com> | 2019-01-20 18:14:19 +0100 |
---|---|---|
committer | Heiko Tietze <tietze.heiko@gmail.com> | 2019-01-25 08:25:53 +0100 |
commit | b8c725cf871b56f74a74dc5d9b193331f98b3f4a (patch) | |
tree | 2ee95029aafedff78487b01e197965607caa97b4 | |
parent | 1ecca673b40fedc53db125e332b087d1c120a254 (diff) |
tdf#92154 limit comboBOX_TEMPLATE length
Change-Id: Ic43f70181b26c88e07445f7c90a8dadcd99b3108
Reviewed-on: https://gerrit.libreoffice.org/66653
Reviewed-by: Heiko Tietze <tietze.heiko@gmail.com>
Tested-by: Jenkins
-rw-r--r-- | sw/source/ui/chrdlg/drpcps.cxx | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/sw/source/ui/chrdlg/drpcps.cxx b/sw/source/ui/chrdlg/drpcps.cxx index d60a0c23e913..04d88c166db6 100644 --- a/sw/source/ui/chrdlg/drpcps.cxx +++ b/sw/source/ui/chrdlg/drpcps.cxx @@ -483,6 +483,10 @@ SwDropCapsPage::SwDropCapsPage(TabPageParent pParent, const SfxItemSet &rSet) const sal_uInt16 nHtmlMode = ::GetHtmlMode(static_cast<const SwDocShell*>(SfxObjectShell::Current())); bHtmlMode = (nHtmlMode & HTMLMODE_ON) != 0; + // tdf#92154 limit comboBOX_TEMPLATE length + const int nMaxWidth(m_xTemplateBox->get_approximate_digit_width() * 50); + m_xTemplateBox->set_size_request(nMaxWidth , -1); + // In the template dialog the text is not influenceable m_xTextText->set_sensitive(!bFormat); m_xTextEdit->set_sensitive(!bFormat); |