EAN128_CC ecc, cc_width, rows and alignment adjustments

This commit is contained in:
gitlost 2019-11-05 14:16:48 +00:00
parent fac9b94f1b
commit 3b87cd4ec6
10 changed files with 191 additions and 41 deletions

View file

@ -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;