[devel] Imported from libpng-1.5.0beta37.tar

This commit is contained in:
Glenn Randers-Pehrson
2010-07-30 14:46:52 -05:00
parent dd80757941
commit 4eb18e9ca2
3 changed files with 99 additions and 99 deletions

View File

@@ -3492,10 +3492,10 @@ png_get_num_cols(png_structp png_ptr)
if (png_ptr != NULL)
{
if (png_ptr->flags & PNG_FLAG_ROW_INIT)
return png_ptr->iwidth;
return png_ptr->iwidth;
else
png_error(png_ptr, "Call png_start_read_image or png_read_update_info "
"before png_get_num_cols");
png_error(png_ptr, "Call png_start_read_image or png_read_update_info "
"before png_get_num_cols");
}
/* Here on error */