Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
  • Loading branch information
baislsl committed Nov 17, 2017
1 parent 8ac646e commit 327949a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/urihelper.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ QString URIHelper::decodeImage(const QImage &img)

//use zbar to decode the QR code
zbar::ImageScanner scanner;
zbar::Image image(gimg.width(), gimg.height(), "Y800", gimg.bits(), gimg.byteCount());
zbar::Image image(gimg.bytesPerLine(), gimg.height(), "Y800", gimg.bits(), gimg.byteCount());
scanner.scan(image);
zbar::SymbolSet res_set = scanner.get_results();
for (zbar::SymbolIterator it = res_set.symbol_begin(); it != res_set.symbol_end(); ++it) {
Expand Down

0 comments on commit 327949a

Please sign in to comment.