diff options
author | Caolán McNamara <caolanm@redhat.com> | 2014-12-08 09:50:52 +0000 |
---|---|---|
committer | Caolán McNamara <caolanm@redhat.com> | 2014-12-08 10:09:01 +0000 |
commit | cca2e7be89a29bd06a65ea85f2feca3783e62d6a (patch) | |
tree | 6af76503e01a9642e3f6086c4fa6d10233bd4173 /filter | |
parent | 6d8b06224cf1819c8af543927d7a80e937c50a94 (diff) |
Related: rhbz#1164614 better default size for no xslt entries case
Change-Id: I75dd1210b4e8e5e7cb2c2ce1e83e085a9c480b91
Diffstat (limited to 'filter')
-rw-r--r-- | filter/source/xsltdialog/xmlfiltersettingsdialog.cxx | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/filter/source/xsltdialog/xmlfiltersettingsdialog.cxx b/filter/source/xsltdialog/xmlfiltersettingsdialog.cxx index 02143c4abeb3..c021300183bb 100644 --- a/filter/source/xsltdialog/xmlfiltersettingsdialog.cxx +++ b/filter/source/xsltdialog/xmlfiltersettingsdialog.cxx @@ -1390,7 +1390,12 @@ void SvxPathControl::Resize() Size SvxPathControl::GetOptimalSize() const { - return m_pVBox->GetOptimalSize(); + Size aDefSize(LogicToPixel(Size(150, 0), MapMode(MAP_APPFONT))); + Size aOptSize(m_pVBox->GetOptimalSize()); + long nRowHeight(GetTextHeight()); + aOptSize.Height() = nRowHeight * 10; + aOptSize.Width() = std::max(aDefSize.Width(), aOptSize.Width()); + return aOptSize; } SvxPathControl::~SvxPathControl() |