This commit is contained in:
John Cupitt 2010-01-27 08:12:31 +00:00
parent e98f55fae7
commit f0baf6e108
1 changed files with 4 additions and 2 deletions

View File

@ -469,8 +469,10 @@ image_sanity( IMAGE *im )
im->Coding != IM_CODING_NONE && im->Coding != IM_CODING_NONE &&
im->Coding != IM_CODING_LABQ && im->Coding != IM_CODING_LABQ &&
im->Coding != IM_CODING_RAD) || im->Coding != IM_CODING_RAD) ||
im->Type < -1 || im->Type > IM_TYPE_GREY16 || im->Type > IM_TYPE_GREY16 )
im->dtype > IM_PARTIAL || im->dhint > IM_ANY ) return( "bad enum value" );
if( im->dtype > IM_PARTIAL ||
im->dhint > IM_ANY )
return( "bad enum value" ); return( "bad enum value" );
if( im->Xres < 0 || im->Xres < 0 ) if( im->Xres < 0 || im->Xres < 0 )
return( "bad resolution" ); return( "bad resolution" );