diff options
Diffstat (limited to 'chart2/source/controller/sidebar/ChartLinePanel.cxx')
-rw-r--r-- | chart2/source/controller/sidebar/ChartLinePanel.cxx | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/chart2/source/controller/sidebar/ChartLinePanel.cxx b/chart2/source/controller/sidebar/ChartLinePanel.cxx index 944b709cac56..449b3efa278f 100644 --- a/chart2/source/controller/sidebar/ChartLinePanel.cxx +++ b/chart2/source/controller/sidebar/ChartLinePanel.cxx @@ -214,6 +214,12 @@ void ChartLinePanel::updateModel( xBroadcaster->removeModifyListener(mxListener); } + css::uno::Reference<css::view::XSelectionSupplier> oldSelectionSupplier( + mxModel->getCurrentController(), css::uno::UNO_QUERY); + if (oldSelectionSupplier.is()) { + oldSelectionSupplier->removeSelectionChangeListener(mxSelectionListener.get()); + } + mxModel = xModel; mbModelValid = true; |