Last commit 7be63a messed up raster/vector text offset with border_width set - fix

This commit is contained in:
gitlost 2020-05-23 00:31:22 +01:00
parent 7be63a00b6
commit 8131471573
4 changed files with 143 additions and 6 deletions

View file

@ -814,11 +814,7 @@ static int plot_raster_default(struct zint_symbol *symbol, int rotate_angle, int
}
memset(pixelbuf, DEFAULT_PAPER, image_width * image_height);
if ((symbol->output_options & BARCODE_BOX) || (symbol->output_options & BARCODE_BIND)) {
default_text_posn = image_height - 17;
} else {
default_text_posn = image_height - 17 - symbol->border_width - symbol->border_width;
}
default_text_posn = image_height - 17;
row_posn = textoffset + yoffset;
next_yposn = textoffset + yoffset;