Kaydet (Commit) 64d5da30 authored tarafından Michael Stahl's avatar Michael Stahl

sw: fix null-pointer crash in ClearFEShellTabCols()

(regression from 33460160)

Change-Id: I6e257f07a44740f77450ca6278aa2c0fa8ce2551
üst dc7ed240
......@@ -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);
}
}
}
}
......
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