diff --git a/ChangeLog b/ChangeLog index b7efc55b7..9f531aad3 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,7 @@ +2009-12-26 Riccardo Mottola + + * Source/NSCell.m: Corrected c99-ism + 2009-12-23 Wolfgang Lux * Source/NSTextView.m (-dealloc, -breakUndoCoalescing, diff --git a/Source/NSCell.m b/Source/NSCell.m index 9b83c8c08..084d32175 100644 --- a/Source/NSCell.m +++ b/Source/NSCell.m @@ -2069,6 +2069,8 @@ static NSColor *dtxtCol; - (NSText*) setUpFieldEditorAttributes: (NSText*)textObject { + NSDictionary *attr; + // Reset the string to have a well defined state. The real string gets set later on. [textObject setString: @""]; @@ -2091,7 +2093,7 @@ static NSColor *dtxtCol; [textObject setRichText: [self allowsEditingTextAttributes]]; [textObject setImportsGraphics: [self importsGraphics]]; [(NSTextView*)textObject setAllowsUndo: [self allowsUndo]]; - NSDictionary *attr = [self _nonAutoreleasedTypingAttributes]; + attr = [self _nonAutoreleasedTypingAttributes]; [(NSTextView*)textObject setTypingAttributes: attr]; RELEASE(attr);