get rid of an unnecessary width check
This commit is contained in:
parent
00623d8c55
commit
afc98ac91e
|
@ -175,16 +175,10 @@
|
|||
{
|
||||
NSTableColumn * column = [tableView tableColumnWithIdentifier: @"Message"];
|
||||
|
||||
int count = 0;
|
||||
float width = [column width];
|
||||
if (width > 0)
|
||||
{
|
||||
if (!fAttributes)
|
||||
fAttributes = [[[[column dataCell] attributedStringValue] attributesAtIndex: 0 effectiveRange: NULL] retain];
|
||||
|
||||
count = [[[fMessages objectAtIndex: row] objectForKey: @"Message"] sizeWithAttributes: fAttributes].width / width;
|
||||
}
|
||||
if (!fAttributes)
|
||||
fAttributes = [[[[column dataCell] attributedStringValue] attributesAtIndex: 0 effectiveRange: NULL] retain];
|
||||
|
||||
int count = [[[fMessages objectAtIndex: row] objectForKey: @"Message"] sizeWithAttributes: fAttributes].width / [column width];
|
||||
return [tableView rowHeight] * (float)(count+1);
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue