[gimp] app: allow a number of drawables to 0 for "gimp-xcf-save".



commit d11e59fc4274df9f128f1d2610254f45ccfa3fb8
Author: Jehan <jehan girinstud io>
Date:   Thu Jul 30 14:11:48 2020 +0200

    app: allow a number of drawables to 0 for "gimp-xcf-save".
    
    This parameter is not even used because we check again the selected
    drawables during the save code. Allowing to set to 0 is simpler, and
    also it will allow to not have to allocate an object array for layers
    when we want to avoid memory management (during crash handling).

 app/xcf/xcf.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
---
diff --git a/app/xcf/xcf.c b/app/xcf/xcf.c
index d6895c7fad..6853573d5d 100644
--- a/app/xcf/xcf.c
+++ b/app/xcf/xcf.c
@@ -154,7 +154,7 @@ xcf_init (Gimp *gimp)
                                g_param_spec_int ("n-drawables",
                                                  "Num drawables",
                                                  "Number of drawables",
-                                                 1, G_MAXINT, 1,
+                                                 0, G_MAXINT, 0,
                                                  GIMP_PARAM_READWRITE));
   gimp_procedure_add_argument (procedure,
                                gimp_param_spec_object_array ("drawables",


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