diff options
author | Noel Grandin <noel@peralex.com> | 2014-04-14 11:50:33 +0200 |
---|---|---|
committer | Noel Grandin <noel@peralex.com> | 2014-04-15 09:02:32 +0200 |
commit | 8fbbd1bd988f0e886095e012c48d93b999773273 (patch) | |
tree | 5eec05a5492bd3e688dfb14065fdff4eb1f36633 /sd/source/ui/docshell/docshell.cxx | |
parent | 3edb4611b2314fa5c03e1b4f70c425d92c95ed16 (diff) |
fix hacked bool in SfxDispatcher::SetSlotFilter
The bEnable flag was being passed an extra value.
Make this explicit now using an enum.
Change-Id: I292aca44e8592c9f3c1497c24c41140c8c3b5452
Diffstat (limited to 'sd/source/ui/docshell/docshell.cxx')
-rw-r--r-- | sd/source/ui/docshell/docshell.cxx | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/sd/source/ui/docshell/docshell.cxx b/sd/source/ui/docshell/docshell.cxx index 8999bdf5cee4..7d250a4508b0 100644 --- a/sd/source/ui/docshell/docshell.cxx +++ b/sd/source/ui/docshell/docshell.cxx @@ -393,7 +393,7 @@ void DrawDocShell::ApplySlotFilter() const SfxDispatcher* pDispatcher = pTestViewShell->GetViewFrame()->GetDispatcher(); if( mpFilterSIDs ) - pDispatcher->SetSlotFilter( mbFilterEnable, mnFilterCount, mpFilterSIDs ); + pDispatcher->SetSlotFilter( mbFilterEnable ? SFX_SLOT_FILTER_ENABLED : SFX_SLOT_FILTER_DISABLED, mnFilterCount, mpFilterSIDs ); else pDispatcher->SetSlotFilter(); |