// Author: Jaakko Salli
// Modified by:
// Created: 2005-05-14
-// RCS-ID: $Id$
// Copyright: (c) Jaakko Salli
// Licence: wxWindows licence
/////////////////////////////////////////////////////////////////////////////
for ( i = 0; i < GetItemCount(); i++ )
{
int doAdd;
- doAdd = ( flags & choices.GetValue(i) );
+ doAdd = ( (flags & choices.GetValue(i)) == choices.GetValue(i) );
if ( doAdd )
{
if ( subVal != (m_oldValue & flag) )
p->ChangeFlag( wxPG_PROP_MODIFIED, true );
- p->SetValue( subVal?true:false );
+ p->SetValue( subVal == flag?true:false );
}
m_oldValue = flags;