diff --git a/rtgui/partialpastedlg.cc b/rtgui/partialpastedlg.cc index edb4473ef..ac196e6db 100644 --- a/rtgui/partialpastedlg.cc +++ b/rtgui/partialpastedlg.cc @@ -19,6 +19,7 @@ #include "partialpastedlg.h" #include "multilangmgr.h" #include "paramsedited.h" +#include "../rtengine/procparams.h" #include "guiutils.h" PartialPasteDlg::PartialPasteDlg (const Glib::ustring &title, Gtk::Window* parent) @@ -662,9 +663,9 @@ void PartialPasteDlg::applyPaste (rtengine::procparams::ProcParams* dstPP, Param { ParamsEdited falsePE; // falsePE is a workaround to set a group of ParamsEdited to false - falsePE.locallab.spots.resize(srcPE->locallab.spots.size(), LocallabParamsEdited::LocallabSpotEdited(false)); + falsePE.locallab.spots.resize(srcPP->locallab.nbspot, LocallabParamsEdited::LocallabSpotEdited(false)); ParamsEdited filterPE(true); // Contains the initial information about the loaded values - filterPE.locallab.spots.resize(srcPE->locallab.spots.size(), LocallabParamsEdited::LocallabSpotEdited(true)); + filterPE.locallab.spots.resize(srcPP->locallab.nbspot, LocallabParamsEdited::LocallabSpotEdited(true)); if (srcPE) { filterPE = *srcPE;