Bug 749044 - Exporting as KISS - CELL (*.cel) results in error

This commit is contained in:
Adrian Likins 2016-05-26 03:48:26 +02:00 committed by Michael Schumacher
parent e20af20fc4
commit bf9b33ece2
1 changed files with 4 additions and 1 deletions

View File

@ -256,7 +256,10 @@ run (const gchar *name,
if (save_image (g_file_new_for_uri (param[3].data.d_string),
image_ID, drawable_ID, &error))
{
gimp_set_data (SAVE_PROC, palette_file, data_length);
if (data_length)
{
gimp_set_data (SAVE_PROC, palette_file, data_length);
}
}
else
{