Re: Epson GT-7000 Photo

Dave Hill (dave@minnie.demon.co.uk)
Wed, 27 Oct 1999 22:15:49 +0100

Dave Hill wrote:
>
> Hi
>
> I have downloaded and compiled this and yes, it doesn work with

s/doesn/does/

> my bare GT7000, but both xsane and xscanimage fail with
> "Segmentation fault" when trying to save the device settings.
>
> I will try a little debugging to see what is happening when I
> get a minute or so!
>
> Dave Hill
>

An easy one. For a bare GT7000, the source list is init'ed to
one entry, but the default is set to the second entry, so
sane_control_option() barfs when trying to retrieve the name
of the source.

--- epson-0.1.3/epson.c Sat Oct 2 09:54:13 1999
+++ epson.c Wed Oct 27 22:00:15 1999
@@ -1543,7 +1543,7 @@
s->opt[ OPT_SOURCE].constraint_type =
SANE_CONSTRAINT_STRING_LIST;
s->opt[ OPT_SOURCE].constraint.string_list =
source_list;

- s->val[ OPT_SOURCE].w = 1;
+ s->val[ OPT_SOURCE].w = 0;

if( ! s->hw->extension) {
s->opt[ OPT_SOURCE].cap |= SANE_CAP_INACTIVE;

-- 
Dave Hill, Kempston, Bedford UK		dave@minnie.demon.co.uk
Sicth munce ago, I cutn't evun spel enjuneer, and now I are one!

--
Source code, list archive, and docs: http://www.mostang.com/sane/
To unsubscribe: echo unsubscribe sane-devel | mail majordomo@mostang.com