Henrik Johansson wrote:
> Hi
>
> Has anyone experienced any trouble when using Xsane with the Snapscan backend?
> When using this backend with the Snapscan 1212U patch applied in Xsane, I
> can't see the resolution slider. This problem has never showed in other
> frontends like xscanimage.
>
> I got this on STDOUT when running Xsane:
> Init resol: 1
> scansource_selection: unknown constraint type 0
> Init resol: 1
> scansource_selection: unknown constraint type 0
> Resolution option: -1
> find_best_resolution: unknown constraint type 0
> set_resolution: unable to set resolution
> Resolution option: -1
> find_best_resolution: unknown constraint type 0
> set_resolution: unable to set resolution
> Resolution option: 1
> Init resol: 1
> scansource_selection: unknown constraint type 0
>
Hi Henrik,
xsane-0.57 will solve this problem.
The problem is that the snapscan backend returns an invalid pointer
when sane_get_option_descriptor is called with negative values.
Normally this sould be fixed in the backend but because there are
other backends who return invalid pointers I decided to solve
the problem in xsane.
If you want a quick fix edit snapscan.c and change the test for
if (option<max_options)
to
if ((option>=0) && (option<max_options))
Bye
Oliver
-- Homepage: http://www.wolfsburg.de/~rauch sane-umax: http://www.wolfsburg.de/~rauch/sane/sane-umax.html xsane: http://www.wolfsburg.de/~rauch/sane/sane-xsane.html E-Mail: mailto:Oliver.Rauch@Wolfsburg.DE-- Source code, list archive, and docs: http://www.mostang.com/sane/ To unsubscribe: echo unsubscribe sane-devel | mail majordomo@mostang.com
This archive was generated by hypermail 2b29 : Sun Feb 20 2000 - 10:36:49 PST