# HG changeset patch # User bjarni # Date 1160468669 0 # Node ID 8b7dff194e0f75029f6ffc637642fa16d2e73ffe # Parent 5a0e1c701644af4dfed2b251272cea9298b279d2 (svn r6715) -Fix r6714: roadvehicle and ship building windows are now also marked dirty when getting a WE_INVALIDATE_DATA event This will make the windows mark dirty again when a new vehicle is available or one is removed from the list (again) diff --git a/roadveh_gui.c b/roadveh_gui.c --- a/roadveh_gui.c +++ b/roadveh_gui.c @@ -453,6 +453,10 @@ static void NewRoadVehWndProc(Window *w, WindowEvent *e) { switch (e->event) { + case WE_INVALIDATE_DATA: + SetWindowDirty(w); + break; + case WE_PAINT: DrawNewRoadVehWindow(w); break; diff --git a/ship_gui.c b/ship_gui.c --- a/ship_gui.c +++ b/ship_gui.c @@ -244,6 +244,10 @@ static void NewShipWndProc(Window *w, WindowEvent *e) { switch (e->event) { + case WE_INVALIDATE_DATA: + SetWindowDirty(w); + break; + case WE_PAINT: { EngineID selected_id; EngineID eid;