Small corrections to recent changes.

git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@25481 72102866-910b-0410-8b05-ffd578937521
This commit is contained in:
Fred Kiefer 2007-09-13 19:13:46 +00:00
parent d8f3c46725
commit dc55ca286e
3 changed files with 10 additions and 3 deletions

View file

@ -1,3 +1,10 @@
2007-09-13 Fred Kiefer <FredKiefer@gmx.de>
* Source/NSTableView.m (-validateEditing): Set object value to
nil, when formatting the string failed.
* Source/NSActionCell.m (-intValue): Check flag in_editing before
validating the editing.
2007-09-12 Fred Kiefer <FredKiefer@gmx.de>
* Source/NSToolbarItem.m (GSToolbarButtonCell-drawInteriorWithFrame:inView:):

View file

@ -201,7 +201,7 @@ static Class controlClass;
*/
- (int)intValue
{
if (_control_view)
if (_cell.in_editing && _control_view)
if ([_control_view isKindOfClass: controlClass])
[(NSControl *)_control_view validateEditing];
return [super intValue];

View file

@ -3185,7 +3185,7 @@ byExtendingSelection: (BOOL)flag
else
{
SEL sel = @selector(control:didFailToFormatString:errorDescription:);
newObjectValue = nil;
if ([_delegate respondsToSelector: sel])
{
validatedOK = [_delegate control: self
@ -3210,7 +3210,7 @@ byExtendingSelection: (BOOL)flag
tb = [_tableColumns objectAtIndex: _editedColumn];
[self _setObjectValue: string
[self _setObjectValue: newObjectValue
forTableColumn: tb
row: _editedRow];
}