[hpoj-devel] [sane-devel] xsane infinite recursion
David Paschal
paschal at rcsis.com
Tue Apr 30 22:27:06 BST 2002
Oliver Rauch wrote:
> The reason for this is simple and ugly. The version of the hpoj backend
> you use defines the geometry options as float but when the frontend sets
> a geometry value to e.g. 13.8 then the backend corrects this to 14.0
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.
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.
Thanks,
David
More information about the sane-devel
mailing list