[gimp] app: don't automatically use explicitly stored filter values



commit 70c5a1009a383dd7d6af7ae7231db0260879c0eb
Author: Michael Natterer <mitch gimp org>
Date:   Sun Mar 20 21:56:51 2016 +0100

    app: don't automatically use explicitly stored filter values
    
    only use automatically stored values (only thes can be last used values)

 app/actions/gimpgeglprocedure.c |    6 ++++++
 1 files changed, 6 insertions(+), 0 deletions(-)
---
diff --git a/app/actions/gimpgeglprocedure.c b/app/actions/gimpgeglprocedure.c
index 9830a1c..6120074 100644
--- a/app/actions/gimpgeglprocedure.c
+++ b/app/actions/gimpgeglprocedure.c
@@ -262,6 +262,12 @@ gimp_gegl_procedure_execute_async (GimpProcedure  *procedure,
   /*  the last used settings  */
   settings = gimp_container_get_child_by_index (container, 0);
 
+  /*  only use the settings if they are automatically created "last used"
+   *  values, not if they were saved explicitly and have a zero timestamp
+   */
+  if (settings && GIMP_SETTINGS (settings)->time == 0)
+    settings = NULL;
+
   if (run_mode == GIMP_RUN_WITH_LAST_VALS)
     {
       if (settings)


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