Tweak Mode C blocks a bit more!

This commit is contained in:
hooper114 2009-07-10 08:19:22 +00:00
parent 2c5e7332e9
commit 2f09c8f938
2 changed files with 32 additions and 5 deletions

View file

@ -704,6 +704,11 @@ int ean_128(struct zint_symbol *symbol, unsigned char source[])
set[i - 1] = 'B';
}
}
for(i = 1; i < read - 1; i++) {
if((set[i] == 'C') && ((set[i - 1] == 'B') && (set[i + 1] == 'B'))) {
set[i] = 'B';
}
}
/* for(i = 0; i < read; i++) {
printf("char %c mode %c\n", reduced[i], set[i]);