summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--sw/source/uibase/shells/basesh.cxx3
1 files changed, 2 insertions, 1 deletions
diff --git a/sw/source/uibase/shells/basesh.cxx b/sw/source/uibase/shells/basesh.cxx
index 173c8d69d372..7428455dfb7b 100644
--- a/sw/source/uibase/shells/basesh.cxx
+++ b/sw/source/uibase/shells/basesh.cxx
@@ -2260,7 +2260,7 @@ void SwBaseShell::ExecBckCol(SfxRequest& rReq)
const SfxItemSet* pArgs = rReq.GetArgs();
sal_uInt16 nSlot(rReq.GetSlot());
- if(!pArgs && nSlot != SID_BACKGROUND_COLOR)
+ if (!pArgs && nSlot != SID_BACKGROUND_COLOR)
{
return;
}
@@ -2314,6 +2314,7 @@ void SwBaseShell::ExecBckCol(SfxRequest& rReq)
case SID_ATTR_BRUSH:
case RES_BACKGROUND:
{
+ assert(pArgs && "only SID_BACKGROUND_COLOR can have !pArgs, checked at entry");
const SvxBrushItem& rNewBrushItem = static_cast<const SvxBrushItem&>(pArgs->Get(GetPool().GetWhich(nSlot)));
aBrushItem = rNewBrushItem;
break;