mirror of
https://github.com/zint/zint
synced 2024-11-16 20:57:25 +13:00
Correct postscript plotting error
Report and fix by Matthieu LARIGALDIE
This commit is contained in:
parent
2faff4e76f
commit
6954497fc1
@ -163,6 +163,7 @@ INTERNAL int ps_plot(struct zint_symbol *symbol) {
|
|||||||
rect = symbol->vector->rectangles;
|
rect = symbol->vector->rectangles;
|
||||||
while (rect) {
|
while (rect) {
|
||||||
fprintf(feps, "%.2f %.2f TB %.2f %.2f TR\n", rect->height, (symbol->vector->height - rect->y) - rect->height, rect->x, rect->width);
|
fprintf(feps, "%.2f %.2f TB %.2f %.2f TR\n", rect->height, (symbol->vector->height - rect->y) - rect->height, rect->x, rect->width);
|
||||||
|
fprintf(feps, "TE\n");
|
||||||
rect = rect->next;
|
rect = rect->next;
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -226,7 +227,7 @@ INTERNAL int ps_plot(struct zint_symbol *symbol) {
|
|||||||
string = string->next;
|
string = string->next;
|
||||||
}
|
}
|
||||||
|
|
||||||
fprintf(feps, "\nshowpage\n");
|
//fprintf(feps, "\nshowpage\n");
|
||||||
|
|
||||||
if (symbol->output_options & BARCODE_STDOUT) {
|
if (symbol->output_options & BARCODE_STDOUT) {
|
||||||
fflush(feps);
|
fflush(feps);
|
||||||
|
Loading…
Reference in New Issue
Block a user