diff --git a/src/zxing/zxing/qrcode/QRVersion.cpp b/src/zxing/zxing/qrcode/QRVersion.cpp index 8cc6ffd..9b59dc3 100644 --- a/src/zxing/zxing/qrcode/QRVersion.cpp +++ b/src/zxing/zxing/qrcode/QRVersion.cpp @@ -59,7 +59,7 @@ int ECBlocks::getECCodewordsPerBloc() int ECBlocks::getTotalECCodewords() { - return ecBlocks_.size(); + return ecCodewordsPerBloc_ * ecBlocks_.size(); } std::vector& ECBlocks::getECBlocks() { diff --git a/src/zxing/zxing/qrcode/encoder/QREncoder.cpp b/src/zxing/zxing/qrcode/encoder/QREncoder.cpp index 81d4501..7e092db 100644 --- a/src/zxing/zxing/qrcode/encoder/QREncoder.cpp +++ b/src/zxing/zxing/qrcode/encoder/QREncoder.cpp @@ -221,7 +221,6 @@ int Encoder::chooseMaskPattern(Ref bits, minPenalty = penalty; bestMaskPattern = maskPattern; } - std::cout << std::string("i: ") << maskPattern << std::string(", penantly: ") << penalty << std::endl; } return bestMaskPattern; }