From ba3ef1a2d5fb1f0eda4ea76ad8a1d46ef380f372 Mon Sep 17 00:00:00 2001 From: alberth Date: Wed, 30 Dec 2009 08:40:05 +0000 Subject: (svn r18664) -Fix [FS#3449]: Unshade shaded finances window when toggling size. --- src/company_gui.cpp | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) (limited to 'src') diff --git a/src/company_gui.cpp b/src/company_gui.cpp index 4cb23cfbc..67c6a9ea4 100644 --- a/src/company_gui.cpp +++ b/src/company_gui.cpp @@ -437,7 +437,13 @@ struct CompanyFinancesWindow : Window { case CFW_TOGGLE_SIZE: // toggle size this->small = !this->small; this->SetupWidgets(); - this->ReInit(); + if (this->IsShaded()) { + /* Finances window is not resizable, so size hints given during unshading have no effect + * on the changed appearance of the window. */ + this->SetShaded(false); + } else { + this->ReInit(); + } break; case CFW_INCREASE_LOAN: // increase loan -- cgit v1.2.3-70-g09d2