summaryrefslogtreecommitdiff
path: root/sw/source/uibase/app
diff options
context:
space:
mode:
Diffstat (limited to 'sw/source/uibase/app')
-rw-r--r--sw/source/uibase/app/docst.cxx4
1 files changed, 2 insertions, 2 deletions
diff --git a/sw/source/uibase/app/docst.cxx b/sw/source/uibase/app/docst.cxx
index 6eff974face6..faa2ac13d814 100644
--- a/sw/source/uibase/app/docst.cxx
+++ b/sw/source/uibase/app/docst.cxx
@@ -275,10 +275,10 @@ void SwDocShell::StateStyleSheet(SfxItemSet& rSet, SwWrtShell* pSh)
rSet.InvalidateItem(nWhich);
break;
case SID_WATERMARK:
+ if (pSh)
{
SfxWatermarkItem aItem = pSh->GetWatermark();
- if( pSh )
- rSet.Put(aItem);
+ rSet.Put(aItem);
}
break;
default: