Don't substitute the font if the textfield is not editable (a label)

This commit is contained in:
Aparajita Fishman authored and Ross Boucher committed 2010-07-28 13:50:52 -07:00
1 parent 90e9b86497
commit c3c996f1f7
1 file changed
+1 -1
+1 -1
View File
@@ -36,7 +36,7 @@
{
var cell = [aCoder decodeObjectForKey:@"NSCell"];
if ([[cell font] isEqual:[CPFont boldSystemFontOfSize:12.0]])
if ([cell isEditable] && [[cell font] isEqual:[CPFont boldSystemFontOfSize:12.0]])
[self setFont:[CPFont systemFontOfSize:12.0]];
[self sendActionOn:CPKeyUpMask|CPKeyDownMask];