[Libreoffice-commits] core.git: cui/source
Libreoffice Gerrit user
logerrit at kemper.freedesktop.org
Mon Sep 3 11:52:34 UTC 2018
cui/source/tabpages/page.cxx | 4 ++++
1 file changed, 4 insertions(+)
New commits:
commit 5a4ed4533127db8cf149353d587a7d3a89c5b338
Author: Caolán McNamara <caolanm at redhat.com>
AuthorDate: Mon Sep 3 10:09:55 2018 +0100
Commit: Caolán McNamara <caolanm at redhat.com>
CommitDate: Mon Sep 3 13:52:12 2018 +0200
Resolves: tdf#119574 set specific width for style list widget
so super wide style name doesn't break things
Change-Id: I096eb1d3deeb935b43566b4d3ccb45d89ac2a56a
Reviewed-on: https://gerrit.libreoffice.org/59928
Tested-by: Jenkins
Reviewed-by: Caolán McNamara <caolanm at redhat.com>
Tested-by: Caolán McNamara <caolanm at redhat.com>
diff --git a/cui/source/tabpages/page.cxx b/cui/source/tabpages/page.cxx
index df36ebf3a12d..054bc8fb16ed 100644
--- a/cui/source/tabpages/page.cxx
+++ b/cui/source/tabpages/page.cxx
@@ -183,6 +183,8 @@ SvxPageDescPage::SvxPageDescPage(TabPageParent pParent, const SfxItemSet& rAttr)
, m_xPrintRangeQueryText(m_xBuilder->weld_label("labelMsg"))
, m_xBspWin(new weld::CustomWeld(*m_xBuilder, "drawingareaPageDirection", m_aBspWin))
{
+ m_xRegisterLB->set_size_request(m_xRegisterLB->get_approximate_digit_width() * 20, -1);
+
bBorderModified = false;
m_aBspWin.EnableRTL(false);
@@ -1425,8 +1427,10 @@ void SvxPageDescPage::SetCollectionList(const std::vector<OUString> &aList)
OSL_ENSURE(!aList.empty(), "Empty string list");
sStandardRegister = aList[0];
+ m_xRegisterLB->freeze();
for (size_t i = 1; i < aList.size(); ++i)
m_xRegisterLB->append_text(aList[i]);
+ m_xRegisterLB->thaw();
m_xRegisterCB->show();
m_xRegisterFT->show();
More information about the Libreoffice-commits
mailing list