From 0a808cc59c015a832f4505d4ff44b1eecf3be181 Mon Sep 17 00:00:00 2001 From: gb <741021719@qq.com> Date: Sat, 3 Jun 2023 10:48:55 +0800 Subject: [PATCH] =?UTF-8?q?TWAIN=E8=AE=BE=E7=BD=AE=E7=BA=B8=E5=BC=A0?= =?UTF-8?q?=E5=8D=8F=E8=AE=AE1122=EF=BC=8C=E5=B0=86=E5=80=BC0=E7=9C=8B?= =?UTF-8?q?=E4=BD=9C=E5=8C=B9=E9=85=8D=E5=8E=9F=E5=A7=8B=E5=B0=BA=E5=AF=B8?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- sane/sane_option_trans.cpp | 3 +++ 1 file changed, 3 insertions(+) diff --git a/sane/sane_option_trans.cpp b/sane/sane_option_trans.cpp index 6e723c2..7d58da7 100644 --- a/sane/sane_option_trans.cpp +++ b/sane/sane_option_trans.cpp @@ -192,6 +192,9 @@ namespace sane_opt_trans 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); return NULL;