diff options
author | Tibor Nagy <nagy.tibor2@nisz.hu> | 2021-07-01 16:43:33 +0200 |
---|---|---|
committer | László Németh <nemeth@numbertext.org> | 2021-07-19 09:19:06 +0200 |
commit | d7dff57384126e50b75c95e84fd3081db2f326a1 (patch) | |
tree | c23553be861fa90c96693ccee9d32c1b653aefea /sd/source | |
parent | 6c5c657ada6eb6b3f25509384e2de4c456ec0b78 (diff) |
tdf#143125 sd: fix crash when closing Custom Slide Shows dialog
regression from commit I6e97a69c546870199d5a45d9a6ad102e30d820c2
Change-Id: I760dabeb024413f1a2aeb57434f63adedb4246f2
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/118231
Tested-by: Jenkins
Tested-by: László Németh <nemeth@numbertext.org>
Reviewed-by: László Németh <nemeth@numbertext.org>
Diffstat (limited to 'sd/source')
-rw-r--r-- | sd/source/ui/func/fucushow.cxx | 9 |
1 files changed, 6 insertions, 3 deletions
diff --git a/sd/source/ui/func/fucushow.cxx b/sd/source/ui/func/fucushow.cxx index 8c63d0215776..eb3b12211085 100644 --- a/sd/source/ui/func/fucushow.cxx +++ b/sd/source/ui/func/fucushow.cxx @@ -74,10 +74,13 @@ void FuCustomShowDlg::DoExecute( SfxRequest& ) } if (nRet == RET_OK) { - if (!pDlg->IsCustomShow()) + if (mpDoc->GetCustomShowList()) { - rSettings.mbCustomShow = false; - rSettings.mbAll = true; + if (!pDlg->IsCustomShow()) + { + rSettings.mbCustomShow = false; + rSettings.mbAll = true; + } } } pDlg.disposeAndClear(); |