[gimp] Bug 648265 - tile cache size larger than 2G causes...
- From: Massimo Valentini <mvalentini src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gimp] Bug 648265 - tile cache size larger than 2G causes...
- Date: Tue, 26 Jul 2011 16:46:14 +0000 (UTC)
commit 220d06324d9870d2dc151279263eddb4474f9ab2
Author: Massimo Valentini <mvalentini src gnome org>
Date: Tue Jul 26 18:44:16 2011 +0200
Bug 648265 - tile cache size larger than 2G causes...
limit gegl cache-size to its maximum value
otherwise modulo arithmetic causes Warnings or
small values
app/gegl/gimp-gegl.c | 4 ++--
1 files changed, 2 insertions(+), 2 deletions(-)
---
diff --git a/app/gegl/gimp-gegl.c b/app/gegl/gimp-gegl.c
index e5f8a51..b9f500b 100644
--- a/app/gegl/gimp-gegl.c
+++ b/app/gegl/gimp-gegl.c
@@ -87,7 +87,7 @@ gimp_gegl_init (Gimp *gimp)
g_object_set (gegl_config (),
"tile-width", TILE_WIDTH,
"tile-height", TILE_HEIGHT,
- "cache-size", config->tile_cache_size,
+ "cache-size", (gint) MIN (config->tile_cache_size, G_MAXINT),
NULL);
g_signal_connect (config, "notify::tile-cache-size",
@@ -140,6 +140,6 @@ static void
gimp_gegl_notify_tile_cache_size (GimpBaseConfig *config)
{
g_object_set (gegl_config (),
- "cache-size", config->tile_cache_size,
+ "cache-size", (gint) MIN (config->tile_cache_size, G_MAXINT),
NULL);
}
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]