Resize baBehav on load (#4828)

This commit is contained in:
Flössie 2018-12-15 15:12:52 +01:00
parent f6a7e43ba0
commit 1ebbe0a096
2 changed files with 14 additions and 13 deletions

View File

@ -707,11 +707,11 @@ void BatchToolPanelCoordinator::spotWBselected (int x, int y, Thumbnail* thm)
double otemp = initialPP[i].wb.temperature;
double ogreen = initialPP[i].wb.green;
if (options.baBehav[12]) {
if (options.baBehav[ADDSET_ROTATE_DEGREE]) {
temp = temp - otemp;
}
if (options.baBehav[13]) {
if (options.baBehav[ADDSET_DIST_AMOUNT]) {
green = green - ogreen;
}

View File

@ -1593,6 +1593,7 @@ void Options::readFromFile(Glib::ustring fname)
if (keyFile.has_group("Batch Processing")) {
if (keyFile.has_key("Batch Processing", "AdjusterBehavior")) {
baBehav = keyFile.get_integer_list("Batch Processing", "AdjusterBehavior");
baBehav.resize(ADDSET_PARAM_NUM);
}
}