# HG changeset patch # User Ruby Dennington # Date 2022-05-10 15:24:33 # Node ID c5b7e32d88b6ab0d4522d2e0ab06890c6fffee41 # Parent 4dd185cf8a2dd988a82267658c1efc21d0d8d471 Fix the 10 pixel indent not being taken into account when calculating the max string width diff --git a/src/company_gui.cpp b/src/company_gui.cpp --- a/src/company_gui.cpp +++ b/src/company_gui.cpp @@ -114,7 +114,7 @@ struct ExpensesList { ExpensesType et = this->et[i]; width = std::max(width, GetStringBoundingBox(STR_FINANCES_SECTION_CONSTRUCTION + et).width); } - return width; + return width + 10; } };