app: fix precision condition for indexed images

This commit is contained in:
Simon Budig 2012-04-28 18:21:37 +02:00 committed by Michael Natterer
parent 2cb15f8669
commit 4c83e208d4
1 changed files with 1 additions and 1 deletions

View File

@ -1498,7 +1498,7 @@ gimp_image_new (Gimp *gimp,
{
g_return_val_if_fail (GIMP_IS_GIMP (gimp), NULL);
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,
"gimp", gimp,