diff options
Diffstat (limited to 'sw/source')
-rw-r--r-- | sw/source/uibase/uiview/view.cxx | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/sw/source/uibase/uiview/view.cxx b/sw/source/uibase/uiview/view.cxx index 08f69fe9c533..752cdca79381 100644 --- a/sw/source/uibase/uiview/view.cxx +++ b/sw/source/uibase/uiview/view.cxx @@ -588,7 +588,7 @@ void SwView::CheckReadonlyState() } if ( SfxItemState::DISABLED == eStateRO ) { - rDis.SetSlotFilter( SfxSlotFilterState::ENABLED_READONLY, SAL_N_ELEMENTS(aROIds), aROIds ); + rDis.SetSlotFilter( SfxSlotFilterState::ENABLED_READONLY, aROIds ); bChgd = true; } } @@ -603,9 +603,7 @@ void SwView::CheckReadonlyState() qsort( static_cast<void*>(aAllProtIds), SAL_N_ELEMENTS(aAllProtIds), sizeof(sal_uInt16), lcl_CmpIds ); bAllProtFirst = false; } - rDis.SetSlotFilter( SfxSlotFilterState::ENABLED_READONLY, - SAL_N_ELEMENTS(aAllProtIds), - aAllProtIds ); + rDis.SetSlotFilter( SfxSlotFilterState::ENABLED_READONLY, aAllProtIds ); bChgd = true; } } |