mirror of
https://github.com/zint/zint
synced 2024-11-16 20:57:25 +13:00
EAN128_CC ecc, cc_width, rows and alignment adjustments
This commit is contained in:
@ -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;
|
||||
|
Reference in New Issue
Block a user