From 5526bebf3c8e3fff887697c2aefbc1b728dbf672 Mon Sep 17 00:00:00 2001 From: Alx Sa Date: Sun, 30 Apr 2023 13:53:16 +0000 Subject: [PATCH] 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. --- plug-ins/print/print.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/plug-ins/print/print.c b/plug-ins/print/print.c index beb9cda6ca..0116adda13 100644 --- a/plug-ins/print/print.c +++ b/plug-ins/print/print.c @@ -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 *