[gimp] Bug 701335 - Gimp crashing on creating huge clipboard brush



commit 0a8135b8b0c98026c7531ebae1bb5b9989bdd0ad
Author: Michael Natterer <mitch gimp org>
Date:   Fri Jun 21 12:45:20 2013 +0200

    Bug 701335 - Gimp crashing on creating huge clipboard brush
    
    Change the maximum size of clipboard patterns and brushes to 1024x1024.

 app/core/gimpbrushclipboard.c   |    4 ++--
 app/core/gimppatternclipboard.c |    4 ++--
 2 files changed, 4 insertions(+), 4 deletions(-)
---
diff --git a/app/core/gimpbrushclipboard.c b/app/core/gimpbrushclipboard.c
index 61a7dcf..7396269 100644
--- a/app/core/gimpbrushclipboard.c
+++ b/app/core/gimpbrushclipboard.c
@@ -196,8 +196,8 @@ gimp_brush_clipboard_buffer_changed (Gimp      *gimp,
       const Babl *format = gegl_buffer_get_format (buffer);
       GeglBuffer *dest_buffer;
 
-      width  = MIN (gimp_buffer_get_width  (gimp->global_buffer), 2048);
-      height = MIN (gimp_buffer_get_height (gimp->global_buffer), 2048);
+      width  = MIN (gimp_buffer_get_width  (gimp->global_buffer), 1024);
+      height = MIN (gimp_buffer_get_height (gimp->global_buffer), 1024);
 
       brush->mask   = gimp_temp_buf_new (width, height,
                                          babl_format ("Y u8"));
diff --git a/app/core/gimppatternclipboard.c b/app/core/gimppatternclipboard.c
index 868162b..11b126d 100644
--- a/app/core/gimppatternclipboard.c
+++ b/app/core/gimppatternclipboard.c
@@ -188,8 +188,8 @@ gimp_pattern_clipboard_buffer_changed (Gimp        *gimp,
       gint        width;
       gint        height;
 
-      width  = MIN (gimp_buffer_get_width  (buffer), 2048);
-      height = MIN (gimp_buffer_get_height (buffer), 2048);
+      width  = MIN (gimp_buffer_get_width  (buffer), 1024);
+      height = MIN (gimp_buffer_get_height (buffer), 1024);
 
       pattern->mask = gimp_temp_buf_new (width, height,
                                          gimp_buffer_get_format (buffer));


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