From 2ab02af6e0caec3a1c076bdde3d7cdf91322d37d Mon Sep 17 00:00:00 2001 From: John Cupitt Date: Tue, 17 Sep 2013 21:23:13 +0100 Subject: [PATCH] error in header read --- libvips/foreign/csv.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/libvips/foreign/csv.c b/libvips/foreign/csv.c index d8439b8d..93c69ffb 100644 --- a/libvips/foreign/csv.c +++ b/libvips/foreign/csv.c @@ -536,7 +536,7 @@ vips__matrix_header( char *whitemap, FILE *fp, return( -1 ); } *width = header[0]; - *height = header[0]; + *height = header[1]; if( *width <= 0 || *width > 100000 || *height <= 0 || @@ -652,6 +652,8 @@ vips__matrix_body( char *whitemap, VipsImage *out, FILE *fp ) } *VIPS_MATRIX( out, x, y ) = d; + printf( "%d, %d = %g\n", x, y, d ); + /* Deliberately don't check for line too long. */ }