From 8bfedd3c2885427eebd391b24787bb6cf2393334 Mon Sep 17 00:00:00 2001 From: Aparajita Fishman Date: Tue, 27 Jul 2010 16:48:54 -0400 Subject: [PATCH] Don't substitute the font if the textfield is not editable (a label) --- Tools/nib2cib/NSTextField.j | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Tools/nib2cib/NSTextField.j b/Tools/nib2cib/NSTextField.j index 8b1b1eeda..8ded6c08e 100644 --- a/Tools/nib2cib/NSTextField.j +++ b/Tools/nib2cib/NSTextField.j @@ -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];