TWAIN设置纸张协议1122,将值0看作匹配原始尺寸

This commit is contained in:
gb 2023-06-03 10:48:55 +08:00
parent 1b8e8f6aa3
commit 0a808cc59c
1 changed files with 3 additions and 0 deletions

View File

@ -192,6 +192,9 @@ namespace sane_opt_trans
const char* paper_from_twain(int val) const char* paper_from_twain(int val)
{ {
if (val == 0) // modified for TWAIN, consider this value as PAPER_STATEMENT. 2023-06-03
val = PAPER_STATEMENT;
VALUE_FROM_TWAIN(g_paper_map, val); VALUE_FROM_TWAIN(g_paper_map, val);
return NULL; return NULL;