From 8e534877c2571d949a9121ccee9841682802c314 Mon Sep 17 00:00:00 2001 From: Pandagrapher Date: Sat, 18 Apr 2020 11:36:01 +0200 Subject: [PATCH] Fix issue where clipboard RT-spots weren't paste with fill mode active --- rtgui/profilepanel.cc | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/rtgui/profilepanel.cc b/rtgui/profilepanel.cc index fff8b0584..c7e889b3f 100644 --- a/rtgui/profilepanel.cc +++ b/rtgui/profilepanel.cc @@ -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 {