mirror of
https://github.com/zint/zint
synced 2024-11-16 20:57:25 +13:00
Corrected EAN-13 text bug
This commit is contained in:
parent
285c2c8555
commit
3e68f49f35
@ -613,6 +613,7 @@ int png_plot(struct zint_symbol *symbol, int rotate_angle)
|
|||||||
draw_bar(pixelbuf, (94 + xoffset), 1, (4 + (int)yoffset), 5, image_width, image_height);
|
draw_bar(pixelbuf, (94 + xoffset), 1, (4 + (int)yoffset), 5, image_width, image_height);
|
||||||
|
|
||||||
textpart[0] = symbol->text[0];
|
textpart[0] = symbol->text[0];
|
||||||
|
textpart[1] = '\0';
|
||||||
textpos = 2 * (-7 + xoffset);
|
textpos = 2 * (-7 + xoffset);
|
||||||
draw_string(pixelbuf, textpart, textpos, (image_height - 17), image_width, image_height);
|
draw_string(pixelbuf, textpart, textpos, (image_height - 17), image_width, image_height);
|
||||||
for(i = 0; i < 6; i++) {
|
for(i = 0; i < 6; i++) {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user