diff options
author | CoprDistGit <infra@openeuler.org> | 2024-08-01 15:40:13 +0000 |
---|---|---|
committer | CoprDistGit <infra@openeuler.org> | 2024-08-01 15:40:13 +0000 |
commit | 05f6fb34ee79ee8112ef549e93f0a138be0e2abf (patch) | |
tree | 6ba01d84d85f00b380477077d920c341c3570b09 /hplip-hplj-3052.patch | |
parent | 9e5a3ab8358d9d01de9ddf82042f5f1a42cfb841 (diff) |
automatic import of hplipopeneuler24.03_LTS
Diffstat (limited to 'hplip-hplj-3052.patch')
-rw-r--r-- | hplip-hplj-3052.patch | 21 |
1 files changed, 21 insertions, 0 deletions
diff --git a/hplip-hplj-3052.patch b/hplip-hplj-3052.patch new file mode 100644 index 0000000..c65efac --- /dev/null +++ b/hplip-hplj-3052.patch @@ -0,0 +1,21 @@ +diff --git a/scan/scanext/scanext.c b/scan/scanext/scanext.c +index ff57987..f607220 100755 +--- a/scan/scanext/scanext.c ++++ b/scan/scanext/scanext.c +@@ -407,16 +407,6 @@ static PyObject *setOption (_ScanDevice * self, PyObject * args) + int n; + multipick = 1; + +-if(1) +-{ +-SANE_Bool b = SANE_TRUE; +- sane_control_option (self->h, 9, SANE_ACTION_SET_VALUE, (void *)&b, &i); +-} +-else +-{ +-SANE_Bool b = SANE_FALSE; +- sane_control_option (self->h, 9, SANE_ACTION_SET_VALUE, (void *)&b, &i); +-} + if (!PyArg_ParseTuple (args, "iO", &n, &value)) + raiseError("Invalid arguments."); + |