]> git.saurik.com Git - wxWidgets.git/blobdiff - src/propgrid/props.cpp
The UIProgressView is somehow not doing layout :(.
[wxWidgets.git] / src / propgrid / props.cpp
index f1112a0ac8a8a11f0984b49f16d18c5038b849e0..c79faae1595330db21f38346aabcfa0d11c3e071 100644 (file)
@@ -1490,7 +1490,7 @@ wxString wxFlagsProperty::ValueToString( wxVariant& value,
     for ( i = 0; i < GetItemCount(); i++ )
     {
         int doAdd;
-        doAdd = ( flags & choices.GetValue(i) );
+        doAdd = ( (flags & choices.GetValue(i)) == choices.GetValue(i) );
 
         if ( doAdd )
         {
@@ -1578,7 +1578,7 @@ void wxFlagsProperty::RefreshChildren()
         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;