Skip to content
Commit bf0c1dfd authored by Volker Krause's avatar Volker Krause
Browse files

Fix PDF417 with binary content not producing any output with ZXing 2.0

There's two issues here:
- The QByteArray to std::wstring conversion has to use unsigned bytes, the
previous code did an implicit conversion to int producing wrong results for
value above 127.
- We now have to explicitly specify we are inputting binary data.

See also https://github.com/zxing-cpp/zxing-cpp/pull/557.

This fixes for example domestic Hungarian railway ticket barcodes not
being shown in KDE Itinerary anymore.

(cherry picked from commit 6b234bc7)
parent 56ae76a8
Pipeline #391504 passed with stage
in 1 minute and 55 seconds
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment