get rid of an unnecessary width check

This commit is contained in:
Mitchell Livingston 2007-11-21 20:22:04 +00:00
parent 00623d8c55
commit afc98ac91e
1 changed files with 3 additions and 9 deletions

View File

@ -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;
}
int count = [[[fMessages objectAtIndex: row] objectForKey: @"Message"] sizeWithAttributes: fAttributes].width / [column width];
return [tableView rowHeight] * (float)(count+1);
}