sw/source/core/edit/ednumber.cxx | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-)
New commits: commit a53a9d9db3cc65f66ea7322de7ec718e8f468b8e Author: Caolán McNamara <caol...@redhat.com> AuthorDate: Fri Jan 8 19:29:35 2021 +0000 Commit: Caolán McNamara <caol...@redhat.com> CommitDate: Sat Jan 9 12:58:47 2021 +0100 cid#1471587 silence Unchecked dynamic_cast Change-Id: I1aa2dc5eabe29c66584451959e414e5f4d279aad Reviewed-on: https://gerrit.libreoffice.org/c/core/+/109015 Tested-by: Caolán McNamara <caol...@redhat.com> Reviewed-by: Caolán McNamara <caol...@redhat.com> diff --git a/sw/source/core/edit/ednumber.cxx b/sw/source/core/edit/ednumber.cxx index a0298ad5ad65..4d75b5d69195 100644 --- a/sw/source/core/edit/ednumber.cxx +++ b/sw/source/core/edit/ednumber.cxx @@ -403,8 +403,8 @@ private: std::vector<SwNode*> aOutlineNdsArray; public: MakeAllOutlineContentTemporarilyVisibile(SwWrtShell* pShell) + : pWrtShell(pShell) { - pWrtShell = pShell; if (pWrtShell && pWrtShell->GetViewOptions() && pWrtShell->GetViewOptions()->IsShowOutlineContentVisibilityButton()) { // make all outlines content visible and store outline nodes having @@ -429,6 +429,8 @@ public: ~MakeAllOutlineContentTemporarilyVisibile() { + if (!pWrtShell) + return; // restore outlines content visibility for (SwNode* pNd : aOutlineNdsArray) pWrtShell->ToggleOutlineContentVisibility(pNd, true); _______________________________________________ Libreoffice-commits mailing list libreoffice-comm...@lists.freedesktop.org https://lists.freedesktop.org/mailman/listinfo/libreoffice-commits