Kaydet (Commit) 6e4922b0 authored tarafından Philippe Jung's avatar Philippe Jung Kaydeden (comit) Michael Meeks

tdf#91389 EDITING: Crash when deleting header

Replaced MyDlg(pParent).Execute by VclPtr equivalent

Change-Id: I7e03913665f770d694f53949e08425ba60adc6ad
Reviewed-on: https://gerrit.libreoffice.org/15908Reviewed-by: 's avatarMichael Meeks <michael.meeks@collabora.com>
Tested-by: 's avatarMichael Meeks <michael.meeks@collabora.com>
üst 7dc00c73
......@@ -1771,12 +1771,13 @@ void SwWrtShell::ChangeHeaderOrFooter(
vcl::Window* pParent = &GetView().GetViewFrame()->GetWindow();
short nResult;
if (bHeader)
nResult = DeleteHeaderDialog(pParent).Execute();
else
nResult = DeleteFooterDialog(pParent).Execute();
bExecute = nResult == RET_YES;
if (bHeader) {
nResult = ScopedVclPtrInstance<DeleteHeaderDialog>::Create(pParent)->Execute();
} else {
nResult = ScopedVclPtrInstance<DeleteFooterDialog>::Create(pParent)->Execute();
}
bExecute = nResult == RET_YES;
StartAllAction();
}
if( bExecute )
......
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