Corrected the logic to set lines = -1 for ADF mode.

merge-requests/1/head
Mike Kelly 2012-03-21 21:04:00 -07:00
rodzic 33bb529c5f
commit 983d44887c
1 zmienionych plików z 1 dodań i 1 usunięć

Wyświetl plik

@ -2596,7 +2596,7 @@ compute_parameters (Avision_Scanner* s)
s->params.pixels_per_line = s->avdimen.hw_pixels_per_line * s->avdimen.xres / s->avdimen.hw_xres;
s->params.lines = s->avdimen.hw_lines * s->avdimen.xres / s->avdimen.hw_xres;
if (!is_adf_scan (s))
if (is_adf_scan (s))
/* we can't know how many lines we'll see with an ADF because that depends on the paper length */
s->params.lines = -1;
if (s->c_mode == AV_THRESHOLDED || s->c_mode == AV_DITHERED)