mirror of
https://github.com/transmission/transmission.git
synced 2025-12-24 20:35:36 +00:00
get rid of an unnecessary width check
This commit is contained in:
@@ -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);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user