Bug 385157

Summary: EAN barcodes do not show numbers on preview/printout
Product: [Applications] KEXI Reporter: Jarosław Staniek <staniek>
Component: Reports and PrintoutsAssignee: Kexi Bugs <kexi-bugs>
Status: CONFIRMED ---    
Severity: normal CC: adam, inksi
Priority: NOR    
Version: 3.1.0 Alpha   
Target Milestone: ---   
Platform: Other   
OS: Linux   
Latest Commit: Version Fixed In:
Sentry Crash Report:
Attachments: Design and preview

Description Jarosław Staniek 2017-09-27 22:51:40 UTC
EAN barcodes do not show numbers on preview/printout.

1. Run Kexi reports or KReportExample.
2. Insert a barcode element.
3. Change type to EAN-8 and EAN-13. (https://en.wikipedia.org/wiki/EAN-8)
4. Set Value property to e.g. 96385074 for EAN-8 (specific 8 digits required due to checksum checking) or for EAN-13 (https://en.wikipedia.org/wiki/International_Article_Number) 5901234123457 or 590123412345.

Actual result: Preview/printout shows no digits below the bars. Design view shows them.

Expected: Preview/printout shows digits below the bars just like on the design.
Comment 1 Jarosław Staniek 2017-09-27 22:53:20 UTC
Developer's hint: In KReport, renderCodeEAN13() uses apparently small values for offsets, e.g. 0.07. This needs investigation and scaling up.
Comment 2 Jarosław Staniek 2017-09-27 22:54:13 UTC
Created attachment 108067 [details]
Design and preview