Skip to content

Commit

Permalink
Remove another call to deprecated gimp_drawable_detach
Browse files Browse the repository at this point in the history
  • Loading branch information
lmanul committed Aug 25, 2024
1 parent 8c18738 commit f7031b2
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/main.c
Original file line number Diff line number Diff line change
Expand Up @@ -192,7 +192,8 @@ static void run (const gchar *name,
gimp_set_data (DATA_KEY_UI_VALS, &ui_vals, sizeof (ui_vals));
}

gimp_drawable_detach (drawable);
gimp_drawable_flush(drawable);
gimp_drawable_merge_shadow(drawable->drawable_id, TRUE);

// If new_image_id = -1, there has been an error (indexed colors ?).
if (new_image_id != -1)
Expand Down

0 comments on commit f7031b2

Please sign in to comment.