summaryrefslogtreecommitdiff
path: root/cui/source/tabpages/tppattern.cxx
diff options
context:
space:
mode:
Diffstat (limited to 'cui/source/tabpages/tppattern.cxx')
-rw-r--r--cui/source/tabpages/tppattern.cxx4
1 files changed, 3 insertions, 1 deletions
diff --git a/cui/source/tabpages/tppattern.cxx b/cui/source/tabpages/tppattern.cxx
index 713a7c3a6628..aa3b561a2c7d 100644
--- a/cui/source/tabpages/tppattern.cxx
+++ b/cui/source/tabpages/tppattern.cxx
@@ -87,8 +87,10 @@ SvxPatternTabPage::SvxPatternTabPage(weld::Container* pPage, weld::DialogControl
, m_xPatternLBWin(new weld::CustomWeld(*m_xBuilder, "patternpresetlist", *m_xPatternLB))
{
// size of the bitmap display
- Size aSize = getDrawPreviewOptimalSize(m_aCtlPreview.GetDrawingArea()->get_ref_device());
+ Size aSize = getPagePropertiesOptimalSize(m_xPatternLB->GetDrawingArea()->get_ref_device());
m_xPatternLB->set_size_request(aSize.Width(), aSize.Height());
+
+ aSize = getDrawPreviewOptimalSize(m_aCtlPreview.GetDrawingArea()->get_ref_device());
m_xCtlPreview->set_size_request(aSize.Width(), aSize.Height());
m_xBitmapCtl.reset(new SvxBitmapCtl);