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:
Nicola Pero 1999-11-25 17:15:46 +00:00
parent 8660565196
commit b58cc80c6b

View file

@ -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];
}