diff options
author | Caolán McNamara <caolanm@redhat.com> | 2019-09-24 10:00:01 +0100 |
---|---|---|
committer | Caolán McNamara <caolanm@redhat.com> | 2019-09-24 13:28:13 +0200 |
commit | bfb7c7be5781246febcffd5fdafd1d74d9dd7bce (patch) | |
tree | ab4e9f27910c6c08883e2839b104d0005f60ce59 /cui/source/tabpages/tpgradnt.cxx | |
parent | 52a626ffb48d2b04a355b31063ca58198e8c2e11 (diff) |
getDrawPreviewOptimalSize can take an OutputDevice arg
Change-Id: Ifb36166b153858ca7e32974e9b297e583b66c256
Reviewed-on: https://gerrit.libreoffice.org/79444
Tested-by: Jenkins
Reviewed-by: Caolán McNamara <caolanm@redhat.com>
Tested-by: Caolán McNamara <caolanm@redhat.com>
Diffstat (limited to 'cui/source/tabpages/tpgradnt.cxx')
-rw-r--r-- | cui/source/tabpages/tpgradnt.cxx | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/cui/source/tabpages/tpgradnt.cxx b/cui/source/tabpages/tpgradnt.cxx index 6274913ac078..fee60f812be5 100644 --- a/cui/source/tabpages/tpgradnt.cxx +++ b/cui/source/tabpages/tpgradnt.cxx @@ -68,7 +68,7 @@ SvxGradientTabPage::SvxGradientTabPage(TabPageParent pParent, const SfxItemSet& , m_xCtlPreview(new weld::CustomWeld(*m_xBuilder, "previewctl", m_aCtlPreview)) , m_xGradientLBWin(new weld::CustomWeld(*m_xBuilder, "gradientpresetlist", *m_xGradientLB)) { - Size aSize = getDrawPreviewOptimalSize(this); + Size aSize = getDrawPreviewOptimalSize(m_aCtlPreview.GetDrawingArea()->get_ref_device()); m_xGradientLB->set_size_request(aSize.Width(), aSize.Height()); m_xCtlPreview->set_size_request(aSize.Width(), aSize.Height()); // this page needs ExchangeSupport |