[Libreoffice-commits] core.git: cui/source

Libreoffice Gerrit user logerrit at kemper.freedesktop.org
Thu Feb 28 10:13:01 UTC 2019


 cui/source/inc/cuitabarea.hxx    |    2 +-
 cui/source/tabpages/backgrnd.cxx |    2 +-
 cui/source/tabpages/tparea.cxx   |    6 +++---
 3 files changed, 5 insertions(+), 5 deletions(-)

New commits:
commit 65438bcda46bab4f2fe6fb555f44aace45e11e5e
Author:     Caolán McNamara <caolanm at redhat.com>
AuthorDate: Thu Feb 28 09:20:40 2019 +0000
Commit:     Caolán McNamara <caolanm at redhat.com>
CommitDate: Thu Feb 28 11:12:34 2019 +0100

    GetDialogController not valid yet
    
    Change-Id: I476744d8f351f4ab2afce5974355a066edc8a4a6
    Reviewed-on: https://gerrit.libreoffice.org/68489
    Reviewed-by: Caolán McNamara <caolanm at redhat.com>
    Tested-by: Caolán McNamara <caolanm at redhat.com>

diff --git a/cui/source/inc/cuitabarea.hxx b/cui/source/inc/cuitabarea.hxx
index 98289ab450e6..5344c69e73bf 100644
--- a/cui/source/inc/cuitabarea.hxx
+++ b/cui/source/inc/cuitabarea.hxx
@@ -249,7 +249,7 @@ protected:
     std::unique_ptr<weld::ToggleButton> m_xBtnBitmap;
     std::unique_ptr<weld::ToggleButton> m_xBtnPattern;
 
-    void SetOptimalSize();
+    void SetOptimalSize(weld::DialogController* pController);
 
 private:
     DECL_LINK(SelectFillTypeHdl_Impl, weld::ToggleButton&, void);
diff --git a/cui/source/tabpages/backgrnd.cxx b/cui/source/tabpages/backgrnd.cxx
index 8711e3a3ebc9..3bb47de0799f 100644
--- a/cui/source/tabpages/backgrnd.cxx
+++ b/cui/source/tabpages/backgrnd.cxx
@@ -1479,7 +1479,7 @@ bool SvxBkgTabPage::FillItemSet( SfxItemSet* rCoreSet )
 VclPtr<SfxTabPage> SvxBkgTabPage::Create(TabPageParent pWindow, const SfxItemSet* rAttrs)
 {
     auto xRet = VclPtr<SvxBkgTabPage>::Create(pWindow, *rAttrs);
-    xRet->SetOptimalSize();
+    xRet->SetOptimalSize(pWindow.pController);
     return xRet;
 }
 
diff --git a/cui/source/tabpages/tparea.cxx b/cui/source/tabpages/tparea.cxx
index ee48acd5f9a8..a311becb2fe1 100644
--- a/cui/source/tabpages/tparea.cxx
+++ b/cui/source/tabpages/tparea.cxx
@@ -119,9 +119,9 @@ SvxAreaTabPage::SvxAreaTabPage(TabPageParent pParent, const SfxItemSet& rInAttrs
     SetExchangeSupport();
 }
 
-void SvxAreaTabPage::SetOptimalSize()
+void SvxAreaTabPage::SetOptimalSize(weld::DialogController* pController)
 {
-    TabPageParent aFillTab(m_xFillTab.get(), GetDialogController());
+    TabPageParent aFillTab(m_xFillTab.get(), pController);
     // TEMP
     if (!aFillTab.pController)
         aFillTab.pParent = GetParentDialog();
@@ -343,7 +343,7 @@ void SvxAreaTabPage::Reset( const SfxItemSet* rAttrs )
 VclPtr<SfxTabPage> SvxAreaTabPage::Create(TabPageParent pParent, const SfxItemSet* rAttrs)
 {
     auto xRet = VclPtr<SvxAreaTabPage>::Create(pParent, *rAttrs);
-    xRet->SetOptimalSize();
+    xRet->SetOptimalSize(pParent.pController);
     return xRet;
 }
 


More information about the Libreoffice-commits mailing list