Skip to content

Commit

Permalink
Fix 18194: after finding the new imgid of the overlay, use it for pro…
Browse files Browse the repository at this point in the history
…cessing
  • Loading branch information
kofa73 authored and TurboGit committed Jan 13, 2025
1 parent 57d7f14 commit c1a11e7
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/iop/overlay.c
Original file line number Diff line number Diff line change
Expand Up @@ -268,7 +268,7 @@ static void _setup_overlay(dt_iop_module_t *self,
dt_iop_overlay_gui_data_t *g = self->gui_data;
dt_iop_overlay_data_t *data = piece->data;

const dt_imgid_t imgid = data->imgid;
dt_imgid_t imgid = data->imgid;

if(!p || !dt_is_valid_imgid(imgid))
return;
Expand All @@ -286,6 +286,7 @@ static void _setup_overlay(dt_iop_module_t *self,
{
image_exists = TRUE;
p->imgid = new_imgid;
imgid = new_imgid;
dt_dev_add_history_item(dev, self, TRUE);
if(g)
gtk_widget_queue_draw(GTK_WIDGET(g->area));
Expand Down

0 comments on commit c1a11e7

Please sign in to comment.