sw/source/ui/chrdlg/drpcps.cxx | 4 ++++ 1 file changed, 4 insertions(+)
New commits: commit b8c725cf871b56f74a74dc5d9b193331f98b3f4a Author: Roman Kuznetsov <antilibreoff...@gmail.com> AuthorDate: Sun Jan 20 18:14:19 2019 +0100 Commit: Heiko Tietze <tietze.he...@gmail.com> CommitDate: Fri Jan 25 08:25:53 2019 +0100 tdf#92154 limit comboBOX_TEMPLATE length Change-Id: Ic43f70181b26c88e07445f7c90a8dadcd99b3108 Reviewed-on: https://gerrit.libreoffice.org/66653 Reviewed-by: Heiko Tietze <tietze.he...@gmail.com> Tested-by: Jenkins 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); _______________________________________________ Libreoffice-commits mailing list libreoffice-comm...@lists.freedesktop.org https://lists.freedesktop.org/mailman/listinfo/libreoffice-commits