summaryrefslogtreecommitdiff
path: root/sw/source
diff options
context:
space:
mode:
Diffstat (limited to 'sw/source')
-rw-r--r--sw/source/core/frmedt/fetab.cxx10
1 files changed, 7 insertions, 3 deletions
diff --git a/sw/source/core/frmedt/fetab.cxx b/sw/source/core/frmedt/fetab.cxx
index 8f3620e7c54c..16c640698c41 100644
--- a/sw/source/core/frmedt/fetab.cxx
+++ b/sw/source/core/frmedt/fetab.cxx
@@ -2085,11 +2085,15 @@ size_t SwFEShell::GetCurMouseTabColNum( const Point &rPt ) const
void ClearFEShellTabCols(SwDoc & rDoc, SwTabFrame const*const pFrame)
{
- for (SwViewShell& rCurrentShell : rDoc.getIDocumentLayoutAccess().GetCurrentViewShell()->GetRingContainer())
+ auto const pShell(rDoc.getIDocumentLayoutAccess().GetCurrentViewShell());
+ if (pShell)
{
- if (auto pFE = dynamic_cast<SwFEShell *>(&rCurrentShell))
+ for (SwViewShell& rCurrentShell : pShell->GetRingContainer())
{
- pFE->ClearColumnRowCache(pFrame);
+ if (auto const pFE = dynamic_cast<SwFEShell *>(&rCurrentShell))
+ {
+ pFE->ClearColumnRowCache(pFrame);
+ }
}
}
}