mirror of
https://git.code.sf.net/p/zint/code
synced 2025-12-17 09:57:02 +00:00
library: use "filemem" for TXT dump_plot() -> txt_hex_plot()
filemem: remove NOLINTS (clang-tidy-20 bug fixed) QRCODE: eliminate NOLINTs using some more asserts (clang-tidy-20); some "de-branching" of loops general: various code fiddlings, in particular lessen no. of redundant parenthesized expressions, especially in conditionals, which reduce rather than aid readibility IMNSHO manual: mention "--dump" option
This commit is contained in:
@@ -1449,9 +1449,9 @@ INTERNAL int zint_composite(struct zint_symbol *symbol, unsigned char source[],
|
||||
}
|
||||
}
|
||||
}
|
||||
if ((linear->width + bottom_shift) > symbol->width + top_shift) {
|
||||
if (linear->width + bottom_shift > symbol->width + top_shift) {
|
||||
symbol->width = linear->width + bottom_shift;
|
||||
} else if ((symbol->width + top_shift) > linear->width + bottom_shift) {
|
||||
} else if (symbol->width + top_shift > linear->width + bottom_shift) {
|
||||
symbol->width += top_shift;
|
||||
}
|
||||
symbol->rows += linear->rows;
|
||||
|
||||
Reference in New Issue
Block a user