mirror of
https://git.code.sf.net/p/zint/code
synced 2025-05-23 03:26:56 -04:00
Set minimum row heights
This commit is contained in:
parent
a57ef2adc8
commit
7ea03123c8
3 changed files with 13 additions and 10 deletions
|
@ -699,13 +699,13 @@ int codablock(struct zint_symbol *symbol, unsigned char source[], int length) {
|
|||
columns = ((int)floor(sqrt(1.0*dataLength))+5);
|
||||
if (columns > 64)
|
||||
columns = 64;
|
||||
#ifdef _DEBUG
|
||||
printf("Auto column count for %d characters:%d\n",dataLength,columns);
|
||||
#endif
|
||||
#ifdef _DEBUG
|
||||
printf("Auto column count for %d characters:%d\n",dataLength,columns);
|
||||
#endif
|
||||
}
|
||||
}
|
||||
/* There are 5 Codewords for Organisation Start(2),row(1),CheckSum,Stop */
|
||||
useColumns = columns - 5;
|
||||
/* There are 5 Codewords for Organisation Start(2),row(1),CheckSum,Stop */
|
||||
useColumns = columns - 5;
|
||||
if ( rows > 0 ) {
|
||||
/* row count given */
|
||||
Error=Rows2Columns(T,data,dataLength,&rows,&useColumns,pSet,&fillings);
|
||||
|
@ -984,6 +984,7 @@ int codablock(struct zint_symbol *symbol, unsigned char source[], int length) {
|
|||
}
|
||||
expand(symbol, dest);
|
||||
}
|
||||
set_minimum_height(symbol, 8);
|
||||
|
||||
if (!(symbol->output_options & BARCODE_BIND)) {
|
||||
symbol->output_options += BARCODE_BIND;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue