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"];
|
NSTableColumn * column = [tableView tableColumnWithIdentifier: @"Message"];
|
||||||
|
|
||||||
int count = 0;
|
if (!fAttributes)
|
||||||
float width = [column width];
|
fAttributes = [[[[column dataCell] attributedStringValue] attributesAtIndex: 0 effectiveRange: NULL] retain];
|
||||||
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);
|
return [tableView rowHeight] * (float)(count+1);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue