mirror of
https://git.code.sf.net/p/zint/code
synced 2026-05-14 10:03:54 +00:00
AZTEC: use algorithm adapted from ZXing for optimized encodation
(ticket #347), props Frank Yellin and Rustam Abdullaev; also improve performance of `FAST_MODE` DATAMATRIX: assert max size on `edges` will fit in unsigned short; use MASK for DMRE/SQUARE `option_3` setting PDF417: assert max size on `edges` will fit in unsigned short GUI: fix setting AZTEC size and ECC combos if not previously set manual: fix not mentioning AZTEC re `FAST_MODE`; gs1 mode footnote: mention 3940's length; pandoc -> 3.9 test suite: DOTCODE: account for new BWIPP input length guard
This commit is contained in:
@@ -3709,12 +3709,13 @@ void MainWindow::automatic_info_set()
|
||||
}
|
||||
txt->setText(QSL("ECC %1").arg(eccStr));
|
||||
if (get_rad_val("radAztecSize")) {
|
||||
set_cmb_index(QSL("cmbAztecSize"), m_aztecSizeIndex);
|
||||
set_cmb_index(QSL("cmbAztecSize"),
|
||||
m_aztecSizeIndex == -1 ? z >= 1 && z <= 36 ? z - 1 : 0 : m_aztecSizeIndex);
|
||||
} else if (z >= 1 && z <= 36) {
|
||||
set_cmb_index(QSL("cmbAztecSize"), z - 1);
|
||||
}
|
||||
if (get_rad_val("radAztecECC")) {
|
||||
set_cmb_index(QSL("cmbAztecECC"), m_aztecECCIndex);
|
||||
set_cmb_index(QSL("cmbAztecECC"), m_aztecECCIndex == -1 ? 1 /*>=23%+3*/ : m_aztecECCIndex);
|
||||
} else {
|
||||
static int ecc_percents[] = { 10, 23, 36, 50 };
|
||||
for (int i = ARRAY_SIZE(ecc_percents) - 1; i >= 0; i--) {
|
||||
|
||||
Reference in New Issue
Block a user