mirror of
https://github.com/gnustep/libs-gui.git
synced 2025-04-23 07:00:46 +00:00
Abort value before setting numeric values.
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@5276 72102866-910b-0410-8b05-ffd578937521
This commit is contained in:
parent
8660565196
commit
b58cc80c6b
1 changed files with 6 additions and 0 deletions
|
@ -168,18 +168,24 @@ static Class cellClass;
|
|||
|
||||
- (void) setDoubleValue: (double)aDouble
|
||||
{
|
||||
[self abortEditing];
|
||||
|
||||
[[self selectedCell] setDoubleValue: aDouble];
|
||||
[self setNeedsDisplay: YES];
|
||||
}
|
||||
|
||||
- (void) setFloatValue: (float)aFloat
|
||||
{
|
||||
[self abortEditing];
|
||||
|
||||
[[self selectedCell] setFloatValue: aFloat];
|
||||
[self setNeedsDisplay: YES];
|
||||
}
|
||||
|
||||
- (void) setIntValue: (int)anInt
|
||||
{
|
||||
[self abortEditing];
|
||||
|
||||
[[self selectedCell] setIntValue: anInt];
|
||||
[self setNeedsDisplay: YES];
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue