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.
This commit is contained in:
Sven Neumann 2005-05-08 11:07:44 +00:00 committed by Sven Neumann
parent df3ae9c65d
commit 63676cca6a
2 changed files with 8 additions and 1 deletions

View File

@ -1,3 +1,9 @@
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.

View File

@ -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);
}