Fix issue where clipboard RT-spots weren't paste with fill mode active

This commit is contained in:
Pandagrapher
2020-04-18 11:36:01 +02:00
parent 9d468bc6ee
commit 8e534877c2

View File

@@ -652,6 +652,10 @@ void ProfilePanel::paste_clicked (GdkEventButton* event)
if (!fillMode->get_active()) {
*custom->pedited = pe;
} else {
// Setting LocallabSpotEdited number coherent with spots number in custom->pparams
custom->pedited->locallab.spots.clear();
custom->pedited->locallab.spots.resize(custom->pparams->locallab.spots.size(), new LocallabParamsEdited::LocallabSpotEdited(true));
}
}
} else {