summaryrefslogtreecommitdiff
path: root/chart2
diff options
context:
space:
mode:
authorCaolán McNamara <caolanm@redhat.com>2019-03-13 16:24:07 +0000
committerCaolán McNamara <caolanm@redhat.com>2019-03-13 22:17:19 +0100
commitd02381a70184f13031e5f2e19a837f5821e4a49c (patch)
treea863a674bcdc86aea0b3e735fe2409723ca07131 /chart2
parentb37b299d5228beeecb913980780f463756c5a878 (diff)
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 <caolanm@redhat.com> Tested-by: Caolán McNamara <caolanm@redhat.com>
Diffstat (limited to 'chart2')
-rw-r--r--chart2/source/controller/dialogs/res_ErrorBar.cxx3
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 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);
}