1
0
mirror of https://github.com/woo-j/zint.git synced 2024-12-24 17:34:05 +03:00

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);
switch(codewords[0]) { /* Set starting mode value */
case 48: M = 2;
case 43: M = 4;
case 44: M = 5;
default: M = 0;
case 48: M = 2; break;
case 43: M = 4; break;
case 44: M = 5; break;
default: M = 0; break;
}
if(M != 0) {