[gimp] Bug 793638 - (gimp-edit-stroke ...) crashes gimp-console-2.9 unless...



commit a1b4f4aef55f7978bfab04f200d6bb482a5e1eb8
Author: Jehan <jehan girinstud io>
Date:   Sun Mar 18 13:47:25 2018 +0100

    Bug 793638 - (gimp-edit-stroke ...) crashes gimp-console-2.9 unless...
    
    ... (gimp-context-set-paint-method...) is called.
    GimpContext initialized with standard paint info at constructed() time
    to ensure there is always a paint_info even if none were set manually.

 app/core/gimpcontext.c |    3 +++
 1 files changed, 3 insertions(+), 0 deletions(-)
---
diff --git a/app/core/gimpcontext.c b/app/core/gimpcontext.c
index dfda990..c45e87f 100644
--- a/app/core/gimpcontext.c
+++ b/app/core/gimpcontext.c
@@ -954,6 +954,9 @@ gimp_context_constructed (GObject *object)
   g_signal_connect_object (gimp->templates, "thaw",
                            G_CALLBACK (gimp_context_template_list_thaw),
                            object, 0);
+
+  gimp_context_set_paint_info (GIMP_CONTEXT (object),
+                               gimp_paint_info_get_standard (gimp));
 }
 
 static void


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