(svn r25867) -Fix [FS#5764]: Shift dates on link graphs when using scenario editor date tool.
This commit is contained in:
@@ -125,6 +125,19 @@ void LinkGraphSchedule::SpawnAll()
|
||||
inst->schedule.clear();
|
||||
}
|
||||
|
||||
/**
|
||||
* Shift all dates (join dates and edge annotations) of link graphs and link
|
||||
* graph jobs by the number of days given.
|
||||
* @param interval Number of days to be added or subtracted.
|
||||
*/
|
||||
void LinkGraphSchedule::ShiftDates(int interval)
|
||||
{
|
||||
LinkGraph *lg;
|
||||
FOR_ALL_LINK_GRAPHS(lg) lg->ShiftDates(interval);
|
||||
LinkGraphJob *lgj;
|
||||
FOR_ALL_LINK_GRAPH_JOBS(lgj) lgj->ShiftJoinDate(interval);
|
||||
}
|
||||
|
||||
/**
|
||||
* Create a link graph schedule and initialize its handlers.
|
||||
*/
|
||||
|
Reference in New Issue
Block a user