summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPatric Stout <truebrain@openttd.org>2021-01-05 16:49:37 +0100
committerPatric Stout <github@truebrain.nl>2021-01-05 21:56:24 +0100
commita3f0ee3b63399d3e634a7ee3e01e7a12a84b915b (patch)
tree1915731d2a4d7e2afe116cbe22c2668d29b2ece3
parentfc474b02fa17f8a8922b7043268e9b6a933b2ce8 (diff)
downloadopenttd-a3f0ee3b63399d3e634a7ee3e01e7a12a84b915b.tar.xz
Codechange: fix alignment of Company GUI
Code acted as if WWT_TEXT starts a scope; it does not.
-rw-r--r--src/company_gui.cpp22
1 files changed, 11 insertions, 11 deletions
diff --git a/src/company_gui.cpp b/src/company_gui.cpp
index f55c801d4..e7bba8111 100644
--- a/src/company_gui.cpp
+++ b/src/company_gui.cpp
@@ -2184,19 +2184,19 @@ static const NWidgetPart _nested_company_widgets[] = {
EndContainer(),
EndContainer(),
NWidget(WWT_TEXT, COLOUR_GREY, WID_C_DESC_COMPANY_VALUE), SetDataTip(STR_COMPANY_VIEW_COMPANY_VALUE, STR_NULL), SetFill(1, 0),
- NWidget(NWID_VERTICAL), SetPIP(4, 2, 4),
- NWidget(NWID_HORIZONTAL), SetPIP(0, 4, 0),
- NWidget(NWID_VERTICAL),
- NWidget(WWT_TEXT, COLOUR_GREY, WID_C_DESC_INFRASTRUCTURE), SetDataTip(STR_COMPANY_VIEW_INFRASTRUCTURE, STR_NULL),
- NWidget(NWID_SPACER), SetFill(0, 1),
- EndContainer(),
- NWidget(WWT_EMPTY, INVALID_COLOUR, WID_C_DESC_INFRASTRUCTURE_COUNTS), SetMinimalTextLines(5, 0), SetFill(1, 0),
- NWidget(NWID_VERTICAL),
- NWidget(WWT_PUSHTXTBTN, COLOUR_GREY, WID_C_VIEW_INFRASTRUCTURE), SetDataTip(STR_COMPANY_VIEW_INFRASTRUCTURE_BUTTON, STR_COMPANY_VIEW_INFRASTRUCTURE_TOOLTIP),
- NWidget(NWID_SPACER), SetFill(0, 1), SetMinimalSize(90, 0),
- EndContainer(),
+ NWidget(NWID_VERTICAL), SetPIP(4, 2, 4),
+ NWidget(NWID_HORIZONTAL), SetPIP(0, 4, 0),
+ NWidget(NWID_VERTICAL),
+ NWidget(WWT_TEXT, COLOUR_GREY, WID_C_DESC_INFRASTRUCTURE), SetDataTip(STR_COMPANY_VIEW_INFRASTRUCTURE, STR_NULL),
+ NWidget(NWID_SPACER), SetFill(0, 1),
+ EndContainer(),
+ NWidget(WWT_EMPTY, INVALID_COLOUR, WID_C_DESC_INFRASTRUCTURE_COUNTS), SetMinimalTextLines(5, 0), SetFill(1, 0),
+ NWidget(NWID_VERTICAL),
+ NWidget(WWT_PUSHTXTBTN, COLOUR_GREY, WID_C_VIEW_INFRASTRUCTURE), SetDataTip(STR_COMPANY_VIEW_INFRASTRUCTURE_BUTTON, STR_COMPANY_VIEW_INFRASTRUCTURE_TOOLTIP),
+ NWidget(NWID_SPACER), SetFill(0, 1), SetMinimalSize(90, 0),
EndContainer(),
EndContainer(),
+ EndContainer(),
NWidget(NWID_HORIZONTAL),
NWidget(NWID_SELECTION, INVALID_COLOUR, WID_C_SELECT_DESC_OWNERS),
NWidget(NWID_VERTICAL), SetPIP(5, 5, 4),