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

Resolves: tdf#91403 no wrtshell during initial layout

(cherry picked from commit ff44502d)

Change-Id: I0d0b8027e07f9dc2dfff584abd026d1b496d93dd
üst c0869339
......@@ -198,9 +198,12 @@ void SwFieldRefPage::Reset(const SfxItemSet* )
// fill up with the sequence types
SwWrtShell *pSh = GetWrtShell();
if(!pSh)
if (!pSh)
pSh = ::GetActiveWrtShell();
if (!pSh)
return;
const sal_uInt16 nFieldTypeCnt = pSh->GetFieldTypeCount(RES_SETEXPFLD);
for (sal_uInt16 n = 0; n < nFieldTypeCnt; ++n)
......
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