Commit 63676cca authored by Sven Neumann's avatar Sven Neumann Committed by Sven Neumann
Browse files

limit the tile-cache-size to G_MAXULONG or GIMP_MAX_MEMSIZE, whatever is

2005-05-08  Sven Neumann  <sven@gimp.org>

	* app/config/gimpbaseconfig.c: limit the tile-cache-size to
	G_MAXULONG or GIMP_MAX_MEMSIZE, whatever is smaller. Fixes
	bug #303371.
parent df3ae9c6
2005-05-08 Sven Neumann <sven@gimp.org>
* app/config/gimpbaseconfig.c: limit the tile-cache-size to
G_MAXULONG or GIMP_MAX_MEMSIZE, whatever is smaller. Fixes
bug #303371.
2005-05-07 Manish Singh <yosh@gimp.org>
* tools/pdbgen/pdb/image.pdb: Fix a typo reported in bug #303379.
......
......@@ -123,7 +123,8 @@ gimp_base_config_class_init (GimpBaseConfigClass *klass)
0);
GIMP_CONFIG_INSTALL_PROP_MEMSIZE (object_class, PROP_TILE_CACHE_SIZE,
"tile-cache-size", TILE_CACHE_SIZE_BLURB,
0, GIMP_MAX_MEMSIZE, 1 << 28, /* 256MB */
0, MIN (G_MAXULONG, GIMP_MAX_MEMSIZE),
1 << 28, /* 256MB */
GIMP_CONFIG_PARAM_CONFIRM);
}
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment