diff options
-rw-r--r-- | svx/source/tbxctrls/tbcontrl.cxx | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/svx/source/tbxctrls/tbcontrl.cxx b/svx/source/tbxctrls/tbcontrl.cxx index 617b8c3b0c5a..d3a055e6bdaa 100644 --- a/svx/source/tbxctrls/tbcontrl.cxx +++ b/svx/source/tbxctrls/tbcontrl.cxx @@ -1244,7 +1244,7 @@ void SvxColorWindow_Impl::StateChanged( sal_uInt16 nSID, SfxItemState eState, co else if ( pState->ISA( XLineColorItem ) ) rColor = ((const XLineColorItem*)pState)->GetColorValue(); - for ( size_t i = 1; i < aColorSet.GetItemCount(); i++ ) + for ( size_t i = 1; i <= aColorSet.GetItemCount(); ++i ) { if ( rColor == aColorSet.GetItemColor(i) ) { |