changeset 14117:12fb1933e331 draft

(svn r18664) -Fix [FS#3449]: Unshade shaded finances window when toggling size.
author alberth <alberth@openttd.org>
date Wed, 30 Dec 2009 08:40:05 +0000
parents b77d67e88961
children 0bac1e9de1a0
files src/company_gui.cpp
diffstat 1 files changed, 7 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/src/company_gui.cpp
+++ b/src/company_gui.cpp
@@ -437,7 +437,13 @@
 			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