Minor correction in data palette.

git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/apps/gorm/trunk@21403 72102866-910b-0410-8b05-ffd578937521
This commit is contained in:
Gregory John Casamento 2005-07-03 16:51:33 +00:00
parent b742588aea
commit 793695920e
2 changed files with 7 additions and 2 deletions

View file

@ -1,3 +1,8 @@
2005-07-03 12:52 Gregory John Casamento <greg_casamento@yahoo.com>
* Palettes/4Data/main.m: Minor fix in
depositViewResourceFromPasteboard: to prevent crash.
2005-07-03 12:26 Gregory John Casamento <greg_casamento@yahoo.com>
* GormCore/GormBoxEditor.m: Minor cleanup.

View file

@ -379,11 +379,11 @@ int defaultDateFormatIndex = 3;
{
if([array count] > 0)
{
id <IBDocuments> document = [(id<IB>)NSApp documentForObject: obj];
id formatter = [array objectAtIndex: 0];
if([obj respondsToSelector: @selector(setFormatter:)])
{
[obj setFormatter: formatter];
[obj setFormatter: formatter];
RETAIN(formatter);
if ([formatter isMemberOfClass: [NSNumberFormatter class]])
{
id fieldValue = [NSNumber numberWithFloat: 1.123456789];