Fix segfault when pasting partial, #5214
This commit is contained in:
parent
6548f3febd
commit
2376a05e07
@ -19,6 +19,7 @@
|
|||||||
#include "partialpastedlg.h"
|
#include "partialpastedlg.h"
|
||||||
#include "multilangmgr.h"
|
#include "multilangmgr.h"
|
||||||
#include "paramsedited.h"
|
#include "paramsedited.h"
|
||||||
|
#include "../rtengine/procparams.h"
|
||||||
#include "guiutils.h"
|
#include "guiutils.h"
|
||||||
|
|
||||||
PartialPasteDlg::PartialPasteDlg (const Glib::ustring &title, Gtk::Window* parent)
|
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
|
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
|
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) {
|
if (srcPE) {
|
||||||
filterPE = *srcPE;
|
filterPE = *srcPE;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user