diff --git a/libvips/create/text.c b/libvips/create/text.c index 37c3ef03..d30230ea 100644 --- a/libvips/create/text.c +++ b/libvips/create/text.c @@ -422,7 +422,7 @@ vips_text_build( VipsObject *object ) /* Cairo can't go over 32k pixels. */ - if( extents.width >= 32768 || + if( extents.width >= 32768 || extents.height >= 32768 ) { vips_error( class->nickname, "%s", _( "text image too large" ) );