Changeset - r26255:c5b7e32d88b6
[Not reviewed]
patchpack
0 1 0
Ruby Dennington (Theleruby) - 23 months ago 2022-05-10 15:24:33
theleruby@gmail.com
Fix the 10 pixel indent not being taken into account when calculating the max string width
1 file changed with 1 insertions and 1 deletions:
0 comments (0 inline, 0 general)
src/company_gui.cpp
Show inline comments
 
@@ -111,13 +111,13 @@ struct ExpensesList {
 
	{
 
		uint width = 0;
 
		for (uint i = 0; i < this->length; i++) {
 
			ExpensesType et = this->et[i];
 
			width = std::max(width, GetStringBoundingBox(STR_FINANCES_SECTION_CONSTRUCTION + et).width);
 
		}
 
		return width;
 
		return width + 10;
 
	}
 
};
 

	
 
/** Types of expense lists */
 
static const ExpensesList _expenses_list_types[] = {
 
	ExpensesList(_expenses_list_revenue, lengthof(_expenses_list_revenue)),
0 comments (0 inline, 0 general)