summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTomaž Vajngerl <tomaz.vajngerl@collabora.co.uk>2017-03-07 16:50:48 +0100
committerTomaž Vajngerl <tomaz.vajngerl@collabora.co.uk>2017-03-30 23:52:43 +0200
commit82fd8daea70fc1b9b26848dc3081b22bd8c605ab (patch)
treea1827c01c6d2b6d833f27d3b1a96d069a5d5d735
parentc21bf93b90c89999e9983137ae3abe505ed89f9c (diff)
charts: use isDataFromSpreadsheet check in creation wizard
Change-Id: I6f4ee2639a3102f4390c6d97491244ede67abc59
-rw-r--r--chart2/source/controller/dialogs/dlg_CreationWizard.cxx5
1 files changed, 1 insertions, 4 deletions
diff --git a/chart2/source/controller/dialogs/dlg_CreationWizard.cxx b/chart2/source/controller/dialogs/dlg_CreationWizard.cxx
index 07a03b06e733..b4beb73575a4 100644
--- a/chart2/source/controller/dialogs/dlg_CreationWizard.cxx
+++ b/chart2/source/controller/dialogs/dlg_CreationWizard.cxx
@@ -77,10 +77,7 @@ CreationWizard::CreationWizard(vcl::Window* pParent, const uno::Reference<frame:
aSize.Width() += aAdditionalRoadmapSize.Width();
this->SetSizePixel(aSize);
- uno::Reference<chart2::XChartDocument> xChartDoc(m_xChartModel, uno::UNO_QUERY);
- bool bHasOwnData = (xChartDoc.is() && xChartDoc->hasInternalDataProvider());
-
- if(bHasOwnData)
+ if (!m_pDialogModel->getModel().isDataFromSpreadsheet())
{
enableState(STATE_SIMPLE_RANGE, false);
enableState(STATE_DATA_SERIES, false);