Configuration::ParseJson():
Save the pop_plus_steps setting: sometimes it is necessary to adapt the pop_plus_steps-variable in order to hit a time-limit-boundary exactly. Otherwise the next computed time-step might overshoot the time-limit, and when moving backwards (via Minus-Button) there is a better resolution: going backwards, the user could hit the exact time-limit, which he could not when going up.
This commit is contained in:
		| @@ -919,6 +919,7 @@ bool Configuration::ParseJson(Configuration* cfg, const char* json) | |||||||
|                         } else if (strcmp(inner_obj_name, "pop_plus_steps") == 0) { |                         } else if (strcmp(inner_obj_name, "pop_plus_steps") == 0) { | ||||||
|                             if (k->value.IsInt()) { |                             if (k->value.IsInt()) { | ||||||
|                                 this->currentPaymentOptions.last().pop_plus_steps = k->value.GetInt(); |                                 this->currentPaymentOptions.last().pop_plus_steps = k->value.GetInt(); | ||||||
|  |                                 this->currentPaymentOptions.last().pop_plus_steps_saved = k->value.GetInt(); | ||||||
|                             } |                             } | ||||||
|                         } else if (strcmp(inner_obj_name, "pop_minus_steps") == 0) { |                         } else if (strcmp(inner_obj_name, "pop_minus_steps") == 0) { | ||||||
|                             if (k->value.IsInt()) { |                             if (k->value.IsInt()) { | ||||||
|   | |||||||
		Reference in New Issue
	
	Block a user