Skip to content

Commit

Permalink
Reset chroma information after loading image
Browse files Browse the repository at this point in the history
dt_dev_reset_chroma() while doing dev_change_image() should be done
- after successfully loading the new image
- in a safe state without signal propagated
  • Loading branch information
jenshannoschwalm committed May 22, 2024
1 parent 0e47c61 commit 85f57b5
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/views/darkroom.c
Original file line number Diff line number Diff line change
Expand Up @@ -853,7 +853,6 @@ static void _dev_change_image(dt_develop_t *dev, const dt_imgid_t imgid)
// possible enable autosaving due to conf setting but wait for some seconds for first save
darktable.develop->autosaving = (double)dt_conf_get_int("autosave_interval") > 1.0;
darktable.develop->autosave_time = dt_get_wtime() + 10.0;
dt_dev_reset_chroma(dev);

g_idle_add(_dev_load_requested_image, dev);
}
Expand Down Expand Up @@ -958,6 +957,9 @@ static gboolean _dev_load_requested_image(gpointer user_data)
dt_dev_pixelpipe_cleanup_nodes(dev->preview_pipe);
dt_dev_pixelpipe_cleanup_nodes(dev->preview2.pipe);

// chroma data will be fixed by reading whitebalance data from history
dt_dev_reset_chroma(dev);

const guint nb_iop = g_list_length(dev->iop);
for(int i = nb_iop - 1; i >= 0; i--)
{
Expand Down

0 comments on commit 85f57b5

Please sign in to comment.