summaryrefslogtreecommitdiff
path: root/chart2
diff options
context:
space:
mode:
authorPranav Kant <pranavk@collabora.co.uk>2018-03-15 16:48:54 +0530
committerpranavk <pranavk@collabora.co.uk>2018-03-16 08:25:44 +0100
commita7e98725901412aa334a1abe87194e682c1ae836 (patch)
tree3fa4743826a582f5a30307d2229ec7f03e28f276 /chart2
parentb8512a1cc771b0bce7305ed5930524e1527b1cc1 (diff)
chart2 lok: give parent to data table dialog to tunnel it
Change-Id: Ie82a9a6d9b499e5da34e04f0c2f5fc7c164b098e Reviewed-on: https://gerrit.libreoffice.org/51346 Tested-by: Jenkins <ci@libreoffice.org> Reviewed-by: pranavk <pranavk@collabora.co.uk>
Diffstat (limited to 'chart2')
-rw-r--r--chart2/source/controller/main/ChartController_EditData.cxx3
1 files changed, 2 insertions, 1 deletions
diff --git a/chart2/source/controller/main/ChartController_EditData.cxx b/chart2/source/controller/main/ChartController_EditData.cxx
index a274a1e402df..c3296edf4d1c 100644
--- a/chart2/source/controller/main/ChartController_EditData.cxx
+++ b/chart2/source/controller/main/ChartController_EditData.cxx
@@ -17,6 +17,7 @@
* the License at http://www.apache.org/licenses/LICENSE-2.0 .
*/
+#include <ChartWindow.hxx>
#include <ChartController.hxx>
#include <dlg_DataEditor.hxx>
@@ -46,7 +47,7 @@ void ChartController::executeDispatch_EditData()
UndoLiveUpdateGuardWithData aUndoGuard(
SchResId( STR_ACTION_EDIT_CHART_DATA ),
m_xUndoManager );
- ScopedVclPtrInstance<DataEditor> aDataEditorDialog( nullptr, xChartDoc, m_xCC );
+ ScopedVclPtrInstance<DataEditor> aDataEditorDialog( GetChartWindow().get(), xChartDoc, m_xCC );
if (aDataEditorDialog->Execute() == RET_OK)
aDataEditorDialog->ApplyChangesToModel();
aUndoGuard.commit();