Kaydet (Commit) 14b05361 authored tarafından Maxim Monastirsky's avatar Maxim Monastirsky

Fix last color detection

Change-Id: Idb0f90a3f2100211689c3ede1dfedda86edb9728
üst a1fc5268
...@@ -1244,7 +1244,7 @@ void SvxColorWindow_Impl::StateChanged( sal_uInt16 nSID, SfxItemState eState, co ...@@ -1244,7 +1244,7 @@ void SvxColorWindow_Impl::StateChanged( sal_uInt16 nSID, SfxItemState eState, co
else if ( pState->ISA( XLineColorItem ) ) else if ( pState->ISA( XLineColorItem ) )
rColor = ((const XLineColorItem*)pState)->GetColorValue(); 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) ) if ( rColor == aColorSet.GetItemColor(i) )
{ {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment