diff --git a/macosx/MessageWindowController.m b/macosx/MessageWindowController.m index 2f63e609a..841d6334b 100644 --- a/macosx/MessageWindowController.m +++ b/macosx/MessageWindowController.m @@ -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); }