1
0
mirror of https://git.code.sf.net/p/zint/code synced 2026-07-31 02:19:50 +00:00

CLI: warn if "--primary" given but not MaxiCode or Composite

This commit is contained in:
gitlost
2026-06-08 01:27:29 +01:00
parent 3bd322359a
commit 4a60a0b068
3 changed files with 55 additions and 40 deletions
+2 -1
View File
@@ -631,7 +631,8 @@ INTERNAL int z_is_upcean(const int symbology) {
/* Whether `symbology` can have composite 2D component data */
INTERNAL int z_is_composite(const int symbology) {
/* Note if change this must change "backend_qt/qzint.cpp" `takesGS1AIData()` also */
/* Note if change this must change "frontend/main.c" `is_composite()` and
"backend_qt/qzint.cpp" `takesGS1AIData()` also */
return (symbology >= BARCODE_EANX_CC && symbology <= BARCODE_DBAR_EXPSTK_CC)
|| symbology == BARCODE_EAN8_CC || symbology == BARCODE_EAN13_CC;
}