Skip to content

Commit

Permalink
Finally the barcode encoding for Qr Codes has beed fixed. Thanks to t…
Browse files Browse the repository at this point in the history
…his commit niallfraser@da544f6 i have seen the error. Thank you @niallfraser!
  • Loading branch information
nikos.ftylitakis committed Jan 12, 2018
1 parent 8d6d5b2 commit f4740d6
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 2 deletions.
2 changes: 1 addition & 1 deletion src/zxing/zxing/qrcode/QRVersion.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,7 @@ int ECBlocks::getECCodewordsPerBloc()

int ECBlocks::getTotalECCodewords()
{
return ecBlocks_.size();
return ecCodewordsPerBloc_ * ecBlocks_.size();
}

std::vector<ECB*>& ECBlocks::getECBlocks() {
Expand Down
1 change: 0 additions & 1 deletion src/zxing/zxing/qrcode/encoder/QREncoder.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -221,7 +221,6 @@ int Encoder::chooseMaskPattern(Ref<BitArray> bits,
minPenalty = penalty;
bestMaskPattern = maskPattern;
}
std::cout << std::string("i: ") << maskPattern << std::string(", penantly: ") << penalty << std::endl;
}
return bestMaskPattern;
}
Expand Down

2 comments on commit f4740d6

@ftylitak
Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

fixes #10 !

@niallfraser
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Your welcome Nikolaos, thank you for providing this library! I've been testing the encoder over the last few days and all looks good.

Please sign in to comment.