mirror of
https://github.com/zint/zint
synced 2024-11-16 20:57:25 +13:00
Flag if DM_SQUARE is used at the same time as symbol size selection
This commit is contained in:
@ -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]) {
|
||||
|
Reference in New Issue
Block a user