GRIDMATRIX codeword fixes, Project Nayuki optimized encoding modes

This commit is contained in:
gitlost 2019-12-04 13:45:01 +00:00
parent 8295883987
commit b1f4a12c78
6 changed files with 678 additions and 334 deletions

View file

@ -401,7 +401,7 @@ static void qr_binary(unsigned char datastream[], const int version, const int t
case 'N':
/* Numeric mode */
/* Mode indicator */
if (version >= RMQR_VERSION) {
if (version < RMQR_VERSION) {
strcat(binary, "0001");
} else {
strcat(binary, "001");
@ -3433,4 +3433,4 @@ int rmqr(struct zint_symbol *symbol, const unsigned char source[], size_t length
}
return 0;
}
}