fix [CPButton setObjectValue:CPOnState]

This commit is contained in:
Klaas Pieter Annema committed 2011-01-07 14:14:19 +01:00
1 parent eee1dcef13
commit c2bab5b369
1 file changed
+1 -1
+1 -1
View File
@@ -203,7 +203,7 @@ CPButtonImageOffset = 3.0;
else if (![anObjectValue isKindOfClass:[CPNumber class]])
anObjectValue = CPOnState;
else if (anObjectValue > CPOnState)
else if (anObjectValue >= CPOnState)
anObjectValue = CPOnState
else if (anObjectValue < CPOffState)