[gimp] Bug 765205 - GIMP crashes dropping the fg color on a text layer



commit a41b4a0436a186325360e65e749836c3c0d40282
Author: Massimo Valentini <mvalentini src gnome org>
Date:   Mon Apr 18 13:36:24 2016 +0200

    Bug 765205 - GIMP crashes dropping the fg color on a text layer
    
    Pass the GimpRGB's address again to gimp_text_layer_set(), not
    the entire struct.

 app/display/gimpdisplayshell-dnd.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)
---
diff --git a/app/display/gimpdisplayshell-dnd.c b/app/display/gimpdisplayshell-dnd.c
index ff98e29..6a368f0 100644
--- a/app/display/gimpdisplayshell-dnd.c
+++ b/app/display/gimpdisplayshell-dnd.c
@@ -382,7 +382,7 @@ gimp_display_shell_dnd_fill (GimpDisplayShell *shell,
       gimp_context_get_foreground (GIMP_CONTEXT (options), &color);
 
       gimp_text_layer_set (GIMP_TEXT_LAYER (drawable), NULL,
-                           "color", color,
+                           "color", &color,
                            NULL);
     }
   else


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