1
0
mirror of https://git.code.sf.net/p/zint/code synced 2026-01-08 12:32:01 +00:00

dxfilmedge: make raw_segs consistent with zxing-cpp

Details see here:
https://github.com/zxing-cpp/zxing-cpp/issues/883#issuecomment-2776593838
This commit is contained in:
Axel Waggershauser
2025-04-04 23:36:33 +02:00
committed by gitlost
parent 789e049945
commit b423e260b9
2 changed files with 8 additions and 8 deletions

View File

@@ -246,7 +246,7 @@ static int dx_parse_code(struct zint_symbol *symbol, const unsigned char *source
*output_length = bp;
if (raw_text && rt_printf_256(symbol, "%04d%s", (dx_code_1 << 4) | dx_code_2, frame_info)) {
if (raw_text && rt_printf_256(symbol, (*has_frame_info ? "%d-%d%s%s" : "%d-%d"), dx_code_1, dx_code_2, "/", frame_info)) {
return ZINT_ERROR_MEMORY; /* `rt_printf_256()` only fails with OOM */
}