mirror of
https://gitlab.gnome.org/GNOME/gimp
synced 2024-10-19 22:34:37 +00:00
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:
parent
17591ea2b7
commit
913cdc1aed
|
@ -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
|
||||
|
|
|
@ -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
|
||||
{
|
||||
|
|
Loading…
Reference in a new issue