mirror of
https://git.code.sf.net/p/zint/code
synced 2025-05-14 15:14:49 -04:00
Flag if DM_SQUARE is used at the same time as symbol size selection
This commit is contained in:
parent
6fa66d5554
commit
24f175b6f6
3 changed files with 17 additions and 5 deletions
|
@ -1181,6 +1181,10 @@ int data_matrix_200(struct zint_symbol *symbol,const unsigned char source[], con
|
|||
while (matrixH[calcsize] != matrixW[calcsize]) {
|
||||
calcsize++;
|
||||
}
|
||||
if (optionsize != -1) {
|
||||
strcpy(symbol->errtxt, "Can not force square symbols when symbol size is selected");
|
||||
error_number = ZINT_WARN_INVALID_OPTION;
|
||||
}
|
||||
} else if (symbol->option_3 != DM_DMRE) {
|
||||
/* Skip DMRE symbols */
|
||||
while (isDMRE[calcsize]) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue