[hpoj-devel] [sane-devel] xsane infinite recursion

Oliver Rauch oliver.rauch@rauch-domain.de
Tue, 30 Apr 2002 23:59:47 +0200


David Paschal wrote:

> Actually, that's not true:
> 
> > [xsane] xsane_get_option_descriptor(11)
> > hpoj:mlc:usb:officejet_d_series: sane_hpoj_get_option_descriptor(option=11)
> > hpoj:mlc:usb:officejet_d_series: option=11 name=<tl-x>
> >     type=1 unit=3 size=4 cap=0x45 ctype=1
>       ^^^^^^
> 
> According to the SANE API standard, "type=1" means SANE_TYPE_INT.

Hm. Looks like I did not recognize this.

> 
> Or did you mean to say that the backend uses "int" instead of "float"?  :-)
> 
> So if the float->int round-up is the problem, then I should change the
> backend to use SANE_TYPE_FIXED(=2) for the geometry options fix this
> problem.

This would solve the problem, but I think xsane also will be able to handle
int values in this case.

Changin the option type to float also would allow xsane to specify the scan area
more exact than 1 mm.

Bye
Oliver


-- 
Homepage:	http://www.rauch-domain.de
sane-umax:	http://www.rauch-domain.de/sane-umax
xsane:		http://www.xsane.org
E-Mail:		mailto:Oliver.Rauch@rauch-domain.de