Skip to content

Commit

Permalink
fix assert in openslide read
Browse files Browse the repository at this point in the history
one of the asserts was broken
  • Loading branch information
jcupitt committed Oct 15, 2012
1 parent 2f65b07 commit bf945dc
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion libvips/foreign/openslide2vips.c
Original file line number Diff line number Diff line change
Expand Up @@ -279,7 +279,7 @@ vips__openslide_generate( VipsRegion *out,
* TILE_HEIGHT pixels and on a tile boundary.
*/
g_assert( (r->left % TILE_WIDTH) == 0 );
g_assert( (r->height % TILE_HEIGHT) == 0 );
g_assert( (r->top % TILE_HEIGHT) == 0 );
g_assert( r->width <= TILE_WIDTH );
g_assert( r->height <= TILE_HEIGHT );

Expand Down

0 comments on commit bf945dc

Please sign in to comment.