diff options
author | Caolán McNamara <caolanm@redhat.com> | 2019-05-01 12:31:19 +0100 |
---|---|---|
committer | Caolán McNamara <caolanm@redhat.com> | 2019-05-01 22:13:13 +0200 |
commit | 95a9ec752032c82cdd72624b4c0eb030989d0803 (patch) | |
tree | fdd532e693ef325b09a5bd370c4e8bf8fab81dce | |
parent | 0b8ac2d3c84043789783d3b4f04639323b9d3bb9 (diff) |
ScValidityRefChildWin has a Controller, not a Window now
Change-Id: Ia570417f6f7926dbce19944d91d4a9cb9814eb19
Reviewed-on: https://gerrit.libreoffice.org/71622
Reviewed-by: Caolán McNamara <caolanm@redhat.com>
Tested-by: Caolán McNamara <caolanm@redhat.com>
-rw-r--r-- | sc/source/ui/view/reffact.cxx | 10 |
1 files changed, 4 insertions, 6 deletions
diff --git a/sc/source/ui/view/reffact.cxx b/sc/source/ui/view/reffact.cxx index 8a389b529ade..47927d38071c 100644 --- a/sc/source/ui/view/reffact.cxx +++ b/sc/source/ui/view/reffact.cxx @@ -57,13 +57,11 @@ SfxChildWinInfo ScValidityRefChildWin::GetInfo() const { SfxChildWinInfo anInfo = SfxChildWindow::GetInfo(); - if( vcl::Window *pWnd = GetWindow() ) + auto xDlgController = GetController(); + if (xDlgController) { - anInfo.aSize = pWnd->GetSizePixel(); - - if( pWnd->IsDialog() ) - if ( static_cast<Dialog*>(pWnd)->IsRollUp() ) - anInfo.nFlags |= SfxChildWindowFlags::ZOOMIN; + weld::Dialog* pDialog = xController->getDialog(); + aInfo.aSize = pDialog->get_size(); } return anInfo; |