change exit status of scanimage

If we have successfully scanned at least one image
during a batch scan, don't return SANE_STATUS_NO_DOCS.
Code by Jeff Breidenbach jeff@jab.org
merge-requests/1/head
m. allan noah 2014-07-14 20:09:02 -04:00
rodzic 0bb6ae706d
commit b973a9c49f
1 zmienionych plików z 6 dodań i 0 usunięć

Wyświetl plik

@ -2377,6 +2377,12 @@ List of available devices:", prog_name);
&& (batch_count == BATCH_COUNT_UNLIMITED || --batch_count))
&& SANE_STATUS_GOOD == status);
if (batch
&& SANE_STATUS_NO_DOCS == status
&& (batch_count == BATCH_COUNT_UNLIMITED)
&& n > batch_start_at)
status = SANE_STATUS_GOOD;
sane_cancel (device);
}
else