Fix #413: Truncation of expense type names in finance windows
This commit is contained in:
@@ -146,7 +146,7 @@ static uint GetMaxCategoriesWidth()
|
|||||||
/* Title of category */
|
/* Title of category */
|
||||||
max_width = std::max(max_width, GetStringBoundingBox(STR_FINANCES_REVENUE_TITLE + i).width);
|
max_width = std::max(max_width, GetStringBoundingBox(STR_FINANCES_REVENUE_TITLE + i).width);
|
||||||
/* Entries in category */
|
/* Entries in category */
|
||||||
max_width = std::max(max_width, _expenses_list_types[i].GetListWidth());
|
max_width = std::max(max_width, EXP_INDENT + _expenses_list_types[i].GetListWidth());
|
||||||
}
|
}
|
||||||
|
|
||||||
return max_width;
|
return max_width;
|
||||||
|
Reference in New Issue
Block a user