actually don't crash when layer previews are disabled. Fixes the crash

2003-12-27  Pedro Gimeno  <pggimeno@wanadoo.es>

	* plug-ins/common/jigsaw.c (jigsaw): actually don't crash when
	layer previews are disabled. Fixes the crash reported in bug
	#112012, but not the bug itself.
This commit is contained in:
Pedro Gimeno 2003-12-27 00:57:05 +00:00 committed by Pedro Gimeno Fortea
parent 17591ea2b7
commit 913cdc1aed
2 changed files with 8 additions and 0 deletions

View file

@ -1,3 +1,9 @@
2003-12-27 Pedro Gimeno <pggimeno@wanadoo.es>
* plug-ins/common/jigsaw.c (jigsaw): actually don't crash when
layer previews are disabled. Fixes the crash reported in bug
#112012, but not the bug itself.
2003-12-26 Sven Neumann <sven@gimp.org>
* app/core/gimpimagefile.c (gimp_imagefile_save_thumb): don't crash

View file

@ -510,6 +510,8 @@ jigsaw (gboolean preview_mode)
height = preview->height;
bytes = preview->bpp;
buffer_size = preview->rowstride * height;
if (buffer_size == 0)
return -1;
}
else
{