app: fix precision condition for indexed images
This commit is contained in:

committed by
Michael Natterer

parent
2cb15f8669
commit
4c83e208d4
@ -1498,7 +1498,7 @@ gimp_image_new (Gimp *gimp,
|
|||||||
{
|
{
|
||||||
g_return_val_if_fail (GIMP_IS_GIMP (gimp), NULL);
|
g_return_val_if_fail (GIMP_IS_GIMP (gimp), NULL);
|
||||||
g_return_val_if_fail (base_type != GIMP_INDEXED ||
|
g_return_val_if_fail (base_type != GIMP_INDEXED ||
|
||||||
precision != GIMP_PRECISION_U8, NULL);
|
precision == GIMP_PRECISION_U8, NULL);
|
||||||
|
|
||||||
return g_object_new (GIMP_TYPE_IMAGE,
|
return g_object_new (GIMP_TYPE_IMAGE,
|
||||||
"gimp", gimp,
|
"gimp", gimp,
|
||||||
|
Reference in New Issue
Block a user