Correct mode bug in Code 49

Thanks to bug report from Joe Bers
This commit is contained in:
Robin Stuart 2010-10-30 18:14:06 +01:00
parent f56b90fb61
commit 0be72e8ed6

View File

@ -180,10 +180,10 @@ int code_49(struct zint_symbol *symbol, unsigned char source[], int length)
} while(i < h); } while(i < h);
switch(codewords[0]) { /* Set starting mode value */ switch(codewords[0]) { /* Set starting mode value */
case 48: M = 2; case 48: M = 2; break;
case 43: M = 4; case 43: M = 4; break;
case 44: M = 5; case 44: M = 5; break;
default: M = 0; default: M = 0; break;
} }
if(M != 0) { if(M != 0) {