fixed incorrect image height for sheetfed scanners

merge-requests/1/head
Stphane Voltz 2011-07-07 22:31:08 +02:00
rodzic 5b9e4f68bb
commit eb061b2c28
2 zmienionych plików z 6 dodań i 1 usunięć

Wyświetl plik

@ -1,3 +1,7 @@
2011-07-07 Stéphane Voltz <stef.dev@free.fr>
* backend/genesys.c: fixed incorrect image height for sheetfed
scanners
2011-07-07 m. allan noah <kitno455 at gmail dot com>
* po/pt.po: updated translation from cncsolutions.com.br

Wyświetl plik

@ -7701,9 +7701,10 @@ sane_get_parameters (SANE_Handle handle, SANE_Parameters * params)
/* in the case of a sheetfed scanner, when full height is specified
* we override the computed line number with -1 to signal that we
* don't know the real document height.
* We don't do that doing buffering image for digital processing
*/
if (s->dev->model->is_sheetfed == SANE_TRUE
&& s->dev->read_active == SANE_FALSE
&& s->dev->buffer_image == SANE_FALSE
&& s->val[OPT_BR_Y].w == s->opt[OPT_BR_Y].constraint.range->max)
{
params->lines = -1;