From 966ef337100c4143408a68a609bef8054442b65c Mon Sep 17 00:00:00 2001 From: Povilas Kanapickas Date: Sat, 18 May 2019 14:56:00 +0300 Subject: [PATCH] genesys: Fix pixel calculation during calibration on gl843 --- backend/genesys_gl843.cc | 3 +++ 1 file changed, 3 insertions(+) diff --git a/backend/genesys_gl843.cc b/backend/genesys_gl843.cc index 51a84f811..dfafeaef3 100644 --- a/backend/genesys_gl843.cc +++ b/backend/genesys_gl843.cc @@ -2821,6 +2821,9 @@ gl843_init_regs_for_shading (Genesys_Device * dev) SCAN_FLAG_DISABLE_BUFFER_FULL_MOVE | SCAN_FLAG_IGNORE_LINE_DISTANCE); + // the pixel number may be updated to conform to scanner constraints + dev->calib_pixels = dev->current_setup.pixels; + if (status != SANE_STATUS_GOOD) { DBG(DBG_error, "%s: failed to setup scan: %s\n", __func__, sane_strstatus(status));