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.
This commit is contained in:
Jehan 2018-03-18 13:47:25 +01:00
parent 753bd0a0c9
commit a1b4f4aef5
1 changed files with 3 additions and 0 deletions

View File

@ -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