From 4dddb349b4e9bb474dcbf176e984161a428af4d7 Mon Sep 17 00:00:00 2001 From: Hombre Date: Sun, 20 Mar 2016 01:33:45 +0100 Subject: [PATCH] Fix #2388: "Partial Paste still buggy, quite impartial" --- rtgui/profilepanel.cc | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/rtgui/profilepanel.cc b/rtgui/profilepanel.cc index 42e35c7dc..b607f0968 100644 --- a/rtgui/profilepanel.cc +++ b/rtgui/profilepanel.cc @@ -596,6 +596,17 @@ void ProfilePanel::paste_clicked (GdkEventButton* event) } else { if (fillMode->get_active()) { custom->pparams->setDefaults(); + } else if (!isCustomSelected ()) { + if (isLastSavedSelected()) { + *custom->pparams = *lastsaved->pparams; + } else { + const ProfileStoreEntry* entry = profiles->getSelectedEntry(); + + if (entry) { + const PartialProfile* partProfile = profileStore.getProfile (entry); + *custom->pparams = *partProfile->pparams; + } + } } profiles->set_active(getCustomRow());