plug-ins: image_id used rather than image in print

In 2.10, print_temp_proc_name () took in the image id. When it was 
updated to take in GimpImage, it still assumed the g_strdup_printf
parameter was an integer.
This is fixed by calling `gimp_image_get_id ()` on the image parameter.
This commit is contained in:
Alx Sa 2023-04-30 13:53:16 +00:00
parent 1f1533b230
commit 5526bebf3c
1 changed files with 2 additions and 1 deletions

View File

@ -518,7 +518,8 @@ print_temp_proc_run (GimpProcedure *procedure,
static gchar *
print_temp_proc_name (GimpImage *image)
{
return g_strdup_printf (PRINT_TEMP_PROC_NAME "-%d", image);
return g_strdup_printf (PRINT_TEMP_PROC_NAME "-%d",
gimp_image_get_id (image));
}
static gchar *