diff --git a/ChangeLog b/ChangeLog index 1a91758d4..c688e0640 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,8 @@ +2005-02-08 Fred Kiefer + + * Source/NSSecureTextField.m (-drawInteriorWithFrame:inView:): + Draw the background colour of the cell. + 2005-02-07 Fred Kiefer * Source/NSTableView.m (-expandItem:expandChildren:, diff --git a/Source/NSSecureTextField.m b/Source/NSSecureTextField.m index cbba8ab34..885728f5b 100644 --- a/Source/NSSecureTextField.m +++ b/Source/NSSecureTextField.m @@ -115,7 +115,13 @@ - (void) drawInteriorWithFrame: (NSRect)cellFrame inView: (NSView *)controlView { - /* Do nothing. */ + /* Draw background, then ... */ + if (_textfieldcell_draws_background) + { + [_background_color set]; + NSRectFill ([self drawingRectForBounds: cellFrame]); + } + /* .. do nothing. */ } - (NSText *) setUpFieldEditorAttributes: (NSText *)textObject