From 88a874fcb3a3735634c638f34dcb0cc7bd2260ac Mon Sep 17 00:00:00 2001 From: Noel Grandin Date: Wed, 23 Jul 2014 10:48:58 +0200 Subject: convert SfxItemState constants to a proper enum and while we're at it - use the enum type all over the place instead of passing around sal_uInt16 - don't use bitwise logic on enum values - use enum values instead of numeric constants Change-Id: I7f24cb4d242e1c00703e7bbcf1a00c18ef1e9fd4 --- svx/source/tbxctrls/formatpaintbrushctrl.cxx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'svx/source/tbxctrls/formatpaintbrushctrl.cxx') diff --git a/svx/source/tbxctrls/formatpaintbrushctrl.cxx b/svx/source/tbxctrls/formatpaintbrushctrl.cxx index 0c977e6c5318..27c6c8aa8067 100644 --- a/svx/source/tbxctrls/formatpaintbrushctrl.cxx +++ b/svx/source/tbxctrls/formatpaintbrushctrl.cxx @@ -96,7 +96,7 @@ void FormatPaintBrushToolBoxControl::Select(sal_uInt16 /*nSelectModifier*/) void FormatPaintBrushToolBoxControl::StateChanged( sal_uInt16 nSID, SfxItemState eState, const SfxPoolItem* pState ) { - if( ( eState & SFX_ITEM_SET ) == 0 ) + if( eState != SFX_ITEM_SET ) m_bPersistentCopy = false; SfxToolBoxControl::StateChanged( nSID, eState, pState ); } -- cgit