1
0
mirror of https://git.code.sf.net/p/zint/code synced 2025-12-18 10:27:09 +00:00

vector: strip excess precision on text_gap + antialias_fudge

(ticket #293, props Andre Maute)
test suite: output: suppress some clang run-time exceptions
  MemorySanitizer: use-of-uninitialized-value (ticket #292, props
  Andre Maute
This commit is contained in:
gitlost
2023-07-19 15:21:49 +01:00
parent 3e96336970
commit 0b653d0d6a
3 changed files with 48 additions and 37 deletions

View File

@@ -505,7 +505,7 @@ INTERNAL int plot_vector(struct zint_symbol *symbol, int rotate_angle, int file_
textoffset = guard_descent;
}
} else {
textoffset = font_height + text_gap + antialias_fudge;
textoffset = font_height + stripf(text_gap + antialias_fudge);
}
}