[gimp] Issue #6695: Wrong tab after JPG export because of "Show preview"…



commit 4f1007edbceda5fa3f65d27c978b3c6a6ec2ea7d
Author: Jehan <jehan girinstud io>
Date:   Fri Apr 30 03:51:21 2021 +0200

    Issue #6695: Wrong tab after JPG export because of "Show preview"…
    
    … 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);
     }


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]