From 20d5dcc50f5eda9e56bd08fe52de796c0884fa22 Mon Sep 17 00:00:00 2001 From: Robin Stuart Date: Sat, 28 Mar 2020 16:09:24 +0000 Subject: [PATCH] Update GS-1 DataBar Stacked seperator Expected behaviour found to slightly differ from what was implemented Discovered and documented by Daniel Gredler. Fixes #183 --- backend/rss.c | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/backend/rss.c b/backend/rss.c index 5f788ab5..d7a0b116 100644 --- a/backend/rss.c +++ b/backend/rss.c @@ -568,7 +568,7 @@ INTERNAL int rss14(struct zint_symbol *symbol, unsigned char source[], int src_l } symbol->row_height[symbol->rows] = 7; /* separator pattern */ - for (i = 4; i < 46; i++) { + for (i = 1; i < 46; i++) { if (module_is_set(symbol, symbol->rows - 2, i) == module_is_set(symbol, symbol->rows, i)) { if (!(module_is_set(symbol, symbol->rows - 2, i))) { set_module(symbol, symbol->rows - 1, i); @@ -579,6 +579,9 @@ INTERNAL int rss14(struct zint_symbol *symbol, unsigned char source[], int src_l } } } + unset_module(symbol, symbol->rows - 1, 1); + unset_module(symbol, symbol->rows - 1, 2); + unset_module(symbol, symbol->rows - 1, 3); symbol->row_height[symbol->rows - 1] = 1; if (symbol->symbology == BARCODE_RSS14STACK_CC) { /* separator pattern for composite symbol */