mirror of https://github.com/GNOME/gimp.git
file-cel: make generating thumbnails more robust
Ran non-interactively, file-cel could crash e.g. if loading an image to generate a thumbnail, because there is no way to specify a palette file in that case.
This commit is contained in:
parent
1981cb9a82
commit
96ce2c936d
|
@ -186,7 +186,10 @@ run (const gchar *name,
|
|||
if (run_mode == GIMP_RUN_NONINTERACTIVE)
|
||||
{
|
||||
palette_file = param[3].data.d_string;
|
||||
data_length = strlen (palette_file) + 1;
|
||||
if (palette_file)
|
||||
data_length = strlen (palette_file) + 1;
|
||||
else
|
||||
data_length = 0;
|
||||
}
|
||||
else if (run_mode == GIMP_RUN_INTERACTIVE)
|
||||
{
|
||||
|
|
Loading…
Reference in New Issue