src/order_gui.cpp
changeset 9862 f801c7d84353
parent 9760 92202f8b455a
child 9942 c3677fa5563f
equal deleted inserted replaced
9861:10bbfd0947e8 9862:f801c7d84353
   617 			this->HideWidget(ORDER_WIDGET_TIMETABLE_VIEW);
   617 			this->HideWidget(ORDER_WIDGET_TIMETABLE_VIEW);
   618 		}
   618 		}
   619 		this->FindWindowPlacementAndResize(desc);
   619 		this->FindWindowPlacementAndResize(desc);
   620 	}
   620 	}
   621 
   621 
       
   622 	virtual void OnInvalidateData(int data = 0)
       
   623 	{
       
   624 		/* Autoreplace replaced the vehicle */
       
   625 		this->vehicle = GetVehicle(this->window_number);
       
   626 	}
       
   627 
   622 	virtual void OnPaint()
   628 	virtual void OnPaint()
   623 	{
   629 	{
   624 		bool shared_orders = this->vehicle->IsOrderListShared();
   630 		bool shared_orders = this->vehicle->IsOrderListShared();
   625 
   631 
   626 		SetVScrollCount(this, this->vehicle->num_orders + 1);
   632 		SetVScrollCount(this, this->vehicle->num_orders + 1);