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



commit dd9f57f8de34397bf1dddd9f7e274e5af3150053
Author: Michael Natterer <mitch gimp org>
Date:   Fri Jun 21 12:43:29 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 7639dcf..779e740 100644
--- a/app/core/gimpbrushclipboard.c
+++ b/app/core/gimpbrushclipboard.c
@@ -201,8 +201,8 @@ gimp_brush_clipboard_buffer_changed (Gimp      *gimp,
       TileManager   *tiles = gimp_buffer_get_tiles (gimp->global_buffer);
       GimpImageType  type  = gimp_buffer_get_image_type (gimp->global_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   = temp_buf_new (width, height, 1, 0, 0, NULL);
       brush->pixmap = temp_buf_new (width, height, 3, 0, 0, NULL);
diff --git a/app/core/gimppatternclipboard.c b/app/core/gimppatternclipboard.c
index debc0b4..d5905bc 100644
--- a/app/core/gimppatternclipboard.c
+++ b/app/core/gimppatternclipboard.c
@@ -195,8 +195,8 @@ gimp_pattern_clipboard_buffer_changed (Gimp        *gimp,
       PixelRegion  bufferPR;
       PixelRegion  maskPR;
 
-      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);
       bytes  = gimp_buffer_get_bytes (gimp->global_buffer);
 
       pattern->mask = temp_buf_new (width, height, bytes, 0, 0, NULL);


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