Fixed nil sent to NSAttributedString.

CQTexperiment
vspader 2009-03-07 11:52:42 -08:00
parent 515be1f20e
commit d2235536c5
1 changed files with 1 additions and 1 deletions

View File

@ -32,7 +32,7 @@
unsigned seconds = 0;
if(nil == object || NO == [object isKindOfClass:[NSNumber class]] || isnan([object doubleValue])) {
return nil;
return @"";
}
value = (unsigned)([object doubleValue]);