diff options
author | Maxim Monastirsky <momonasmon@gmail.com> | 2014-05-18 13:26:54 +0300 |
---|---|---|
committer | Maxim Monastirsky <momonasmon@gmail.com> | 2014-05-18 14:50:59 +0300 |
commit | 14b05361b8f8f5953289d1c8b03528fa0d3838cd (patch) | |
tree | 56608e7f0a02585cf0dc4a02a8a1bb5db73725b8 /svx/source | |
parent | a1fc526845df5b8641c996a9f96a25e323771dd4 (diff) |
Fix last color detection
Change-Id: Idb0f90a3f2100211689c3ede1dfedda86edb9728
Diffstat (limited to 'svx/source')
-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) ) { |