[Libreoffice-commits] core.git: sw/source
Caolán McNamara (via logerrit)
logerrit at kemper.freedesktop.org
Sat Jan 9 11:59:36 UTC 2021
sw/source/core/edit/ednumber.cxx | 4 +++-
1 file changed, 3 insertions(+), 1 deletion(-)
New commits:
commit a53a9d9db3cc65f66ea7322de7ec718e8f468b8e
Author: Caolán McNamara <caolanm at redhat.com>
AuthorDate: Fri Jan 8 19:29:35 2021 +0000
Commit: Caolán McNamara <caolanm at 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 <caolanm at redhat.com>
Reviewed-by: Caolán McNamara <caolanm at 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);
More information about the Libreoffice-commits
mailing list