Fix issue where selected spot was not saved correctly right after
deleting spot
This commit is contained in:
parent
a368b5470b
commit
de2f66ae76
@ -555,8 +555,8 @@ void Locallab::write(rtengine::procparams::ProcParams* pp, ParamsEdited* pedited
|
|||||||
|
|
||||||
// Select the first remaining spot before deleted one
|
// Select the first remaining spot before deleted one
|
||||||
if (pp->locallab.spots.size() > 0) {
|
if (pp->locallab.spots.size() > 0) {
|
||||||
for (int j = i - 1; j >= 0; j--) { // procparams spots uses zero-based index whereas spot ids use one-based index
|
for (int j = i - 1; j >= 0; j--) {
|
||||||
if (expsettings->setSelectedSpot(j + 1)) { // True if an existing spot has been selected on controlspotpanel
|
if (expsettings->setSelectedSpot(j)) { // True if an existing spot has been selected on controlspotpanel
|
||||||
pp->locallab.selspot = j;
|
pp->locallab.selspot = j;
|
||||||
|
|
||||||
break;
|
break;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user