mirror of
https://github.com/zint/zint
synced 2024-11-16 20:57:25 +13:00
Correct mode bug in Code 49
Thanks to bug report from Joe Bers
This commit is contained in:
parent
f56b90fb61
commit
0be72e8ed6
@ -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) {
|
||||
|
Loading…
Reference in New Issue
Block a user