Kaydet (Commit) ff44502d authored tarafından Caolán McNamara's avatar Caolán McNamara

Resolves: tdf#91403 no wrtshell during initial layout

Change-Id: I0d0b8027e07f9dc2dfff584abd026d1b496d93dd
üst 8cbb94a2
...@@ -198,9 +198,12 @@ void SwFieldRefPage::Reset(const SfxItemSet* ) ...@@ -198,9 +198,12 @@ void SwFieldRefPage::Reset(const SfxItemSet* )
// fill up with the sequence types // fill up with the sequence types
SwWrtShell *pSh = GetWrtShell(); SwWrtShell *pSh = GetWrtShell();
if(!pSh) if (!pSh)
pSh = ::GetActiveWrtShell(); pSh = ::GetActiveWrtShell();
if (!pSh)
return;
const size_t nFieldTypeCnt = pSh->GetFieldTypeCount(RES_SETEXPFLD); const size_t nFieldTypeCnt = pSh->GetFieldTypeCount(RES_SETEXPFLD);
OSL_ENSURE( nFieldTypeCnt < static_cast<size_t>(REFFLDFLAG), "<SwFieldRefPage::Reset> - Item index will overlap flags!" ); OSL_ENSURE( nFieldTypeCnt < static_cast<size_t>(REFFLDFLAG), "<SwFieldRefPage::Reset> - Item index will overlap flags!" );
......
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