diff options
author | Caolán McNamara <caolanm@redhat.com> | 2019-03-13 16:24:07 +0000 |
---|---|---|
committer | Caolán McNamara <caolanm@redhat.com> | 2019-03-15 10:01:45 +0100 |
commit | 8e8029a891540664ac0ce59b23d586aefb5fe77c (patch) | |
tree | 3e4c976ec9ccbdcde22d66529b62b59a523c3a85 | |
parent | a2f06dcf8ad41ad94c309e7e79e8000842760d7e (diff) |
Resolves: tdf#123694 we need the controller, not the tabpage parent
Change-Id: Ib390abaec648a1e06fcc35f83cb170fc654cf021
Reviewed-on: https://gerrit.libreoffice.org/69205
Reviewed-by: Xisco Faulí <xiscofauli@libreoffice.org>
Reviewed-by: Adolfo Jayme Barrientos <fitojb@ubuntu.com>
Reviewed-by: Caolán McNamara <caolanm@redhat.com>
Tested-by: Caolán McNamara <caolanm@redhat.com>
-rw-r--r-- | chart2/source/controller/dialogs/res_ErrorBar.cxx | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/chart2/source/controller/dialogs/res_ErrorBar.cxx b/chart2/source/controller/dialogs/res_ErrorBar.cxx index c1ea174c43d3..5a2d750a632c 100644 --- a/chart2/source/controller/dialogs/res_ErrorBar.cxx +++ b/chart2/source/controller/dialogs/res_ErrorBar.cxx @@ -41,8 +41,9 @@ namespace { void lcl_enableRangeChoosing(bool bEnable, TabPageParent pParent) { - if (weld::Window* pWeldDialog = dynamic_cast<weld::Window*>(pParent.pPage)) + if (weld::DialogController* pController = pParent.pController) { + weld::Window* pWeldDialog = pController->getDialog(); pWeldDialog->set_modal(!bEnable); pWeldDialog->show(!bEnable); } |