chart2/source/controller/dialogs/res_ErrorBar.cxx | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-)
New commits: commit d02381a70184f13031e5f2e19a837f5821e4a49c Author: Caolán McNamara <caol...@redhat.com> AuthorDate: Wed Mar 13 16:24:07 2019 +0000 Commit: Caolán McNamara <caol...@redhat.com> CommitDate: Wed Mar 13 22:17:19 2019 +0100 Resolves: tdf#123694 we need the controller, not the tabpage parent Change-Id: Ib390abaec648a1e06fcc35f83cb170fc654cf021 Reviewed-on: https://gerrit.libreoffice.org/69203 Tested-by: Jenkins Reviewed-by: Caolán McNamara <caol...@redhat.com> Tested-by: Caolán McNamara <caol...@redhat.com> diff --git a/chart2/source/controller/dialogs/res_ErrorBar.cxx b/chart2/source/controller/dialogs/res_ErrorBar.cxx index 8d0517ce1970..3de82496c6fe 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); } _______________________________________________ Libreoffice-commits mailing list libreoffice-comm...@lists.freedesktop.org https://lists.freedesktop.org/mailman/listinfo/libreoffice-commits