[gimp] Bug 670226 - pbm image non-interactive different from interactive



commit d93d2e71c31d7684a3385e450e4def66c9e3d13e
Author: Massimo Valentini <mvalentini src gnome org>
Date:   Sat Feb 18 19:15:33 2012 +0100

    Bug 670226 - pbm image non-interactive different from interactive
    
    Properly set the "pbm" flag in non-interactive mode, also add a
    missing "break" so non-interactive actually behaves like
    non-interactive.

 plug-ins/common/file-pnm.c |    2 ++
 1 files changed, 2 insertions(+), 0 deletions(-)
---
diff --git a/plug-ins/common/file-pnm.c b/plug-ins/common/file-pnm.c
index 9e0fcb9..feab67a 100644
--- a/plug-ins/common/file-pnm.c
+++ b/plug-ins/common/file-pnm.c
@@ -429,7 +429,9 @@ run (const gchar      *name,
           else
             {
               psvals.raw = (param[5].data.d_int32) ? TRUE : FALSE;
+              pbm = (strcmp (name, PBM_SAVE_PROC) == 0);
             }
+          break;
 
         case GIMP_RUN_WITH_LAST_VALS:
           /*  Possibly retrieve data  */



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