mirror of
https://git.code.sf.net/p/zint/code
synced 2025-05-14 23:24:39 -04:00
EAN128_CC ecc, cc_width, rows and alignment adjustments
This commit is contained in:
parent
fac9b94f1b
commit
3b87cd4ec6
10 changed files with 191 additions and 41 deletions
|
@ -306,9 +306,9 @@ namespace Zint {
|
|||
qreal gheight = m_zintSymbol->vector->height;
|
||||
|
||||
if (paintRect.width() / gwidth < paintRect.height() / gheight) {
|
||||
scale = (qreal) floor(paintRect.width() / gwidth);
|
||||
scale = paintRect.width() / gwidth;
|
||||
} else {
|
||||
scale = (qreal) floor(paintRect.height() / gheight);
|
||||
scale = paintRect.height() / gheight;
|
||||
}
|
||||
|
||||
xtr += (qreal) (paintRect.width() - gwidth * scale) / 2.0;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue