From 4f1007edbceda5fa3f65d27c978b3c6a6ec2ea7d Mon Sep 17 00:00:00 2001 From: Jehan Date: Fri, 30 Apr 2021 03:51:21 +0200 Subject: [PATCH] =?UTF-8?q?Issue=20#6695:=20Wrong=20tab=20after=20JPG=20ex?= =?UTF-8?q?port=20because=20of=20"Show=20preview"=E2=80=A6?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit … feature. Using the new gimp_display_present() function in file-jpeg to make sure the original display is back to the top. --- plug-ins/file-jpeg/jpeg.c | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/plug-ins/file-jpeg/jpeg.c b/plug-ins/file-jpeg/jpeg.c index fcd1474cc7..49711b56e9 100644 --- a/plug-ins/file-jpeg/jpeg.c +++ b/plug-ins/file-jpeg/jpeg.c @@ -625,9 +625,14 @@ jpeg_save (GimpProcedure *procedure, * deletes the image. */ if (display) - gimp_display_delete (display); + { + gimp_display_delete (display); + gimp_display_present (gimp_default_display ()); + } else - gimp_image_delete (image); + { + gimp_image_delete (image); + } g_free (drawables); }