1
0
Fork 0
mirror of https://github.com/transmission/transmission synced 2025-02-20 13:16:53 +00:00

one less calculation

This commit is contained in:
Mitchell Livingston 2009-12-14 23:47:15 +00:00
parent 897f344b71
commit e0d2b59931

View file

@ -635,9 +635,10 @@
if (minimal)
result.size.width -= PADDING_BETWEEN_TITLE_AND_MIN_STATUS + NSWidth(statusRect);
if ([[self representedObject] priority] != TR_PRI_NORMAL)
{
result.size.width -= PRIORITY_ICON_WIDTH + PADDING_BETWEEN_TITLE_AND_PRIORITY;
result.size.width = MIN(result.size.width, [string size].width);
result.size.width = MIN(result.size.width, [string size].width); //only need to force it smaller for the priority icon
}
return result;
}