Fix setting gamma-tables that are not symmetrical (items / range)

Authored by sars on Aug 25 2018, 11:03 AM.

Description

Fix setting gamma-tables that are not symmetrical (items / range)

Libksane expected gamma-tables to have as many entries as the maximum
value in the table. This is not the case for example in the niash
backend. This patch will hopefully fix the setting of gamma-table
for the niash backend.

I do not have a scanner that has an asymmetrical gamma-table, so I
cannot test this fully.

BUG: 370972
FIXED-IN: KDE Applications 18.12

Also change names of some variables to follow KF5 coding standards

Details

Committed
sarsAug 25 2018, 11:20 AM
Parents
R382:e387aa424c27: Extract KSanePreviewImageBuilder from KSanePreviewThread
Branches
Unknown
Tags
Unknown