Kaydet (Commit) 8d7a250c authored tarafından Pranav Kant's avatar Pranav Kant Kaydeden (comit) Jan Holesovsky

chart2 lok: give parent to data table dialog to tunnel it

Change-Id: Ie82a9a6d9b499e5da34e04f0c2f5fc7c164b098e
(cherry picked from commit cbbff5a2c08a55bfec27b2476fd848e972bfd572)
Reviewed-on: https://gerrit.libreoffice.org/51356Reviewed-by: 's avatarJan Holesovsky <kendy@collabora.com>
Tested-by: 's avatarJan Holesovsky <kendy@collabora.com>
üst 37c5cfe4
......@@ -18,6 +18,7 @@
*/
#include "ChartController.hxx"
#include "ChartWindow.hxx"
#include "macros.hxx"
#include "dlg_DataEditor.hxx"
......@@ -52,7 +53,7 @@ void ChartController::executeDispatch_EditData()
UndoLiveUpdateGuardWithData aUndoGuard(
SCH_RESSTR( STR_ACTION_EDIT_CHART_DATA ),
m_xUndoManager );
ScopedVclPtrInstance<DataEditor> aDataEditorDialog( nullptr, xChartDoc, m_xCC );
ScopedVclPtrInstance<DataEditor> aDataEditorDialog( m_pChartWindow.get(), xChartDoc, m_xCC );
if (aDataEditorDialog->Execute() == RET_OK)
aDataEditorDialog->ApplyChangesToModel();
aUndoGuard.commit();
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment