diff options
-rw-r--r-- | sw/source/core/fields/docufld.cxx | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/sw/source/core/fields/docufld.cxx b/sw/source/core/fields/docufld.cxx index d61ecf14f4a8..c66d14338199 100644 --- a/sw/source/core/fields/docufld.cxx +++ b/sw/source/core/fields/docufld.cxx @@ -142,7 +142,7 @@ void SwPageNumberFieldType::ChangeExpansion( SwDoc* pDoc, nNumberingType = *pNumFmt; bVirtuell = false; - if( bVirt ) + if (bVirt && pDoc) { // check the flag since the layout NEVER sets it back const SfxItemPool &rPool = pDoc->GetAttrPool(); |