diff options
Diffstat (limited to 'chart2/source/controller/main/ChartController_EditData.cxx')
-rw-r--r-- | chart2/source/controller/main/ChartController_EditData.cxx | 8 |
1 files changed, 2 insertions, 6 deletions
diff --git a/chart2/source/controller/main/ChartController_EditData.cxx b/chart2/source/controller/main/ChartController_EditData.cxx index e9820cab3cce..1e0c8c3dc96f 100644 --- a/chart2/source/controller/main/ChartController_EditData.cxx +++ b/chart2/source/controller/main/ChartController_EditData.cxx @@ -17,8 +17,8 @@ * the License at http://www.apache.org/licenses/LICENSE-2.0 . */ -#include <ChartWindow.hxx> #include <ChartController.hxx> +#include <ChartModel.hxx> #include <dlg_DataEditor.hxx> #include "UndoGuard.hxx" @@ -26,19 +26,15 @@ #include <strings.hrc> #include <vcl/svapp.hxx> -#include <com/sun/star/chart2/XChartDocument.hpp> using namespace ::com::sun::star; -using ::com::sun::star::uno::Reference; - namespace chart { void ChartController::executeDispatch_EditData() { - Reference< chart2::XChartDocument > xChartDoc( getModel(), uno::UNO_QUERY ); - if (xChartDoc.is()) + if (rtl::Reference<::chart::ChartModel> xChartDoc = getChartModel()) { SolarMutexGuard aSolarGuard; UndoLiveUpdateGuardWithData aUndoGuard( |