kopia lustrzana https://gitlab.com/sane-project/backends
Fix comparaison.
rodzic
2c7bd3ac27
commit
c66cdfb4ae
|
@ -236,7 +236,7 @@ get_JPEG_data(capabilities_t *scanner, int *width, int *height, int *bps)
|
|||
*height = h;
|
||||
*bps = cinfo.output_components;
|
||||
// If the image is not completely read!
|
||||
if (scanner->height(unsigned int) < cinfo.output_height)
|
||||
if (cinfo.output_height > (unsigned int)scanner->height)
|
||||
jpeg_abort_decompress(&cinfo);
|
||||
else
|
||||
jpeg_finish_decompress(&cinfo);
|
||||
|
|
Ładowanie…
Reference in New Issue