Flag if DM_SQUARE is used at the same time as symbol size selection

This commit is contained in:
Robin Stuart 2017-07-26 11:16:54 +01:00
parent 6fa66d5554
commit 24f175b6f6
3 changed files with 17 additions and 5 deletions

View file

@ -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]) {