diff options
author | Mike Kaganski <mike.kaganski@collabora.com> | 2022-07-19 17:20:17 +0300 |
---|---|---|
committer | Mike Kaganski <mike.kaganski@collabora.com> | 2022-07-28 14:22:37 +0200 |
commit | 84681c019ebbe358aa41deab73da902e44efee3d (patch) | |
tree | 7dfafd81c8f246c7bc3a0d4949a3a6e339f4d6fc /chart2 | |
parent | d41ed86f59f7e5bd922bbe90a63f39289c1acbeb (diff) |
lok: Properly update sidebar context in Math
Change-Id: I830c0d9bdeaa6340283eafc3e91251d02602d7aa
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/137247
Tested-by: Jenkins
Reviewed-by: Mike Kaganski <mike.kaganski@collabora.com>
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/137546
Tested-by: Jenkins CollaboraOffice <jenkinscollaboraoffice@gmail.com>
Diffstat (limited to 'chart2')
-rw-r--r-- | chart2/source/controller/main/ChartController.cxx | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/chart2/source/controller/main/ChartController.cxx b/chart2/source/controller/main/ChartController.cxx index f50fab660acf..f9fcc71f1793 100644 --- a/chart2/source/controller/main/ChartController.cxx +++ b/chart2/source/controller/main/ChartController.cxx @@ -403,7 +403,7 @@ void SAL_CALL ChartController::attachFrame( { auto pSidebar = dynamic_cast<sfx2::sidebar::SidebarController*>(xSidebar.get()); assert(pSidebar); - sfx2::sidebar::SidebarController::registerSidebarForFrame(pSidebar, this); + pSidebar->registerSidebarForFrame(this); pSidebar->updateModel(getModel()); css::lang::EventObject aEvent; mpSelectionChangeHandler->selectionChanged(aEvent); @@ -747,7 +747,7 @@ void SAL_CALL ChartController::dispose() uno::Reference<ui::XSidebar> xSidebar = getSidebarFromModel(getModel()); if (sfx2::sidebar::SidebarController* pSidebar = dynamic_cast<sfx2::sidebar::SidebarController*>(xSidebar.get())) { - sfx2::sidebar::SidebarController::unregisterSidebarForFrame(pSidebar, this); + pSidebar->unregisterSidebarForFrame(this); } } |