app: fix reading GeglColor arguments in pluginrc.
A GeglColor may be without profile (when the space doesn't require one or if the default profile is used for the model).
This commit is contained in:
parent
7db648195c
commit
19be79178d
1 changed files with 8 additions and 3 deletions
|
|
@ -948,16 +948,21 @@ plug_in_proc_arg_deserialize (GScanner *scanner,
|
|||
bpp > 40 ||
|
||||
! gimp_scanner_parse_data (scanner, bpp, &data) ||
|
||||
! gimp_scanner_parse_string (scanner, &encoding) ||
|
||||
! gimp_scanner_parse_int (scanner, &profile_size) ||
|
||||
! gimp_scanner_parse_data (scanner, profile_size, &profile_data))
|
||||
! gimp_scanner_parse_int (scanner, &profile_size))
|
||||
{
|
||||
g_free (data);
|
||||
g_free (encoding);
|
||||
g_free (profile_data);
|
||||
|
||||
token = G_TOKEN_INT;
|
||||
goto error;
|
||||
}
|
||||
if (profile_size > 0 && ! gimp_scanner_parse_data (scanner, profile_size, &profile_data))
|
||||
{
|
||||
g_free (profile_data);
|
||||
|
||||
token = G_TOKEN_STRING;
|
||||
goto error;
|
||||
}
|
||||
|
||||
if (bpp > 0)
|
||||
{
|
||||
|
|
|
|||
Loading…
Reference in a new issue