修复TWAIN设置扫描张数BUG
This commit is contained in:
parent
0a4df946cb
commit
3d29b9138c
|
@ -1109,9 +1109,9 @@ bool scanner::get_option_value_with_parent(int sn, set_opt_value setv, void* par
|
|||
|
||||
return handled;
|
||||
}
|
||||
bool scanner::set_option_value_with_parent(int sn, void* data, int* err) // return true if handled
|
||||
bool scanner::set_option_value_with_parent(int sn, void* data, int* err) // return true if handled sn
|
||||
{
|
||||
bool handled = true;
|
||||
bool handled = false;
|
||||
|
||||
if (sn == scan_count_id_)
|
||||
{
|
||||
|
@ -1135,11 +1135,6 @@ bool scanner::set_option_value_with_parent(int sn, void* data, int* err) // retu
|
|||
*err = hg_sane_middleware::instance()->set_option(handle_, scan_mode_id_, SANE_ACTION_SET_VALUE, val, &after);
|
||||
}
|
||||
delete[] val;
|
||||
// handled = false;
|
||||
}
|
||||
else
|
||||
{
|
||||
handled = false;
|
||||
}
|
||||
|
||||
return handled;
|
||||
|
|
|
@ -82,7 +82,7 @@ class scanner : public ISaneInvoker, virtual public refer
|
|||
void extension_erase_color(int id);
|
||||
|
||||
bool get_option_value_with_parent(int sn, set_opt_value setv, void* param); // return true if handled
|
||||
bool set_option_value_with_parent(int sn, void* data, int* err); // return true if handled
|
||||
bool set_option_value_with_parent(int sn, void* data, int* err); // return true if handled sn
|
||||
int set_option_value(int sn, SANE_Value_Type type, int size, void* data);
|
||||
|
||||
typedef struct _ex_api
|
||||
|
|
Loading…
Reference in New Issue