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 09:57:22 +0000 |
commit | 40d11c282cae31bd82e87fd0a0ea54c162e7e53c (patch) | |
tree | 6fe4e35a076e3b5fd539aa74479d4402a4f947e5 /filter | |
parent | 7b16cf0f554680adadef19dfdf82c52243313e03 (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 fc0da394f46f..7c32e259c735 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() |