summaryrefslogtreecommitdiff
path: root/chart2/source/controller/sidebar/ChartAxisPanel.cxx
diff options
context:
space:
mode:
Diffstat (limited to 'chart2/source/controller/sidebar/ChartAxisPanel.cxx')
-rw-r--r--chart2/source/controller/sidebar/ChartAxisPanel.cxx6
1 files changed, 6 insertions, 0 deletions
diff --git a/chart2/source/controller/sidebar/ChartAxisPanel.cxx b/chart2/source/controller/sidebar/ChartAxisPanel.cxx
index 692c26a07ad9..a4621378cedf 100644
--- a/chart2/source/controller/sidebar/ChartAxisPanel.cxx
+++ b/chart2/source/controller/sidebar/ChartAxisPanel.cxx
@@ -327,6 +327,12 @@ void ChartAxisPanel::updateModel(
xBroadcaster->removeModifyListener(mxModifyListener);
}
+ css::uno::Reference<css::view::XSelectionSupplier> oldSelectionSupplier(
+ mxModel->getCurrentController(), css::uno::UNO_QUERY);
+ if (oldSelectionSupplier.is()) {
+ oldSelectionSupplier->removeSelectionChangeListener(mxSelectionListener.get());
+ }
+
mxModel = xModel;
mbModelValid = true;