From a760d0dc26a0da2e78b31de700a4f3ac0ca578c2 Mon Sep 17 00:00:00 2001 From: Robin Stuart Date: Sat, 8 Jan 2011 23:09:49 +0000 Subject: [PATCH] Correction to CC-A Three column CC-A needs to have Centre RAP after first column. Thanks to Terry Burton --- backend/composite.c | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/backend/composite.c b/backend/composite.c index 424aaa3a..2f252eb3 100644 --- a/backend/composite.c +++ b/backend/composite.c @@ -251,12 +251,15 @@ int cc_a(struct zint_symbol *symbol, char source[], int cc_width) concat(codebarre, "1"); concat(codebarre, codagemc[offset + dummy[1]]); concat(codebarre, "1"); + if(cc_width == 3) { + concat(codebarre, RAPC[CentreRAP]); + } if(cc_width >= 2) { concat(codebarre, "1"); concat(codebarre, codagemc[offset + dummy[2]]); concat(codebarre, "1"); } - if(CentreRAPStart != 0) { + if(cc_width == 4) { concat(codebarre, RAPC[CentreRAP]); } if(cc_width >= 3) {