diff options
author | Pranav Kant <pranavk@collabora.co.uk> | 2018-03-15 16:48:54 +0530 |
---|---|---|
committer | Andras Timar <andras.timar@collabora.com> | 2018-03-27 12:22:59 +0200 |
commit | 0d863ee8e701ab890ca44ac9e1364adec600bec6 (patch) | |
tree | e4fb301b09a15070873e6271f653af1f29b50b11 /chart2 | |
parent | 88ff7cb2dceae0ef170042e03eacf1f44b6a907d (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>
(cherry picked from commit a7e98725901412aa334a1abe87194e682c1ae836)
Diffstat (limited to 'chart2')
-rw-r--r-- | chart2/source/controller/main/ChartController_EditData.cxx | 3 |
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 3ad6b90b8770..e6d2f4fffe0c 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> @@ -47,7 +48,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(); |