Local adjustments - Fix apply/paste actions with LA

- Fixes LA lost when applying partial profile (fixes #6150)
- Fixes LA behavior when using apply/paste actions: spots are now totally replaced and not anymore merged (fixes #6136 and #6411)
- Fixes a crash in specific situations when saving/copying a partial number of spots
- Partial paste dialog: Fixes Locallab button remaining inconsistent if all the spots are deselected
This commit is contained in:
Pandagrapher
2022-07-18 19:03:29 +02:00
committed by GitHub
parent 19a4720ec7
commit 1e2dc30738
3 changed files with 26 additions and 9 deletions

View File

@@ -496,6 +496,12 @@ void ProfilePanel::load_clicked (GdkEventButton* event)
custom->pedited->locallab.spots.clear();
}
// For each Locallab spot, loaded profile pp only contains activated tools params
// Missing tool params in pe shall be also set to true to avoid a "spot merge" issue
for (int i = 0; i < (int)pe.locallab.spots.size(); i++) {
pe.locallab.spots.at(i).set(true);
}
custom->set(true);
bool prevState = changeconn.block(true);