Changeset - r24310:7bf8fced4e61
[Not reviewed]
master
0 1 0
stormcone - 4 years ago 2020-07-02 10:35:28
48624099+stormcone@users.noreply.github.com
Fix #8250: [NRT] Company infrastructure window always omits last road/tramtype
1 file changed with 2 insertions and 2 deletions:
0 comments (0 inline, 0 general)
src/company_gui.cpp
Show inline comments
 
@@ -1882,7 +1882,7 @@ struct CompanyInfrastructureWindow : Win
 

	
 
		switch (widget) {
 
			case WID_CI_RAIL_DESC: {
 
				uint lines = 1;
 
				uint lines = 1; // Starts at 1 because a line is also required for the section title
 

	
 
				size->width = max(size->width, GetStringBoundingBox(STR_COMPANY_INFRASTRUCTURE_VIEW_RAIL_SECT).width);
 

	
 
@@ -1905,7 +1905,7 @@ struct CompanyInfrastructureWindow : Win
 

	
 
			case WID_CI_ROAD_DESC:
 
			case WID_CI_TRAM_DESC: {
 
				uint lines = 0;
 
				uint lines = 1; // Starts at 1 because a line is also required for the section title
 

	
 
				size->width = max(size->width, GetStringBoundingBox(widget == WID_CI_ROAD_DESC ? STR_COMPANY_INFRASTRUCTURE_VIEW_ROAD_SECT : STR_COMPANY_INFRASTRUCTURE_VIEW_TRAM_SECT).width);
 

	
0 comments (0 inline, 0 general)