summaryrefslogtreecommitdiff
path: root/chart2
diff options
context:
space:
mode:
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 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);
}