mirror of
https://git.code.sf.net/p/zint/code
synced 2025-05-28 22:14:19 -04:00
Calculate correct size of Maxicode in GUI
This commit is contained in:
parent
28ea2f1c69
commit
f479a68ccd
1 changed files with 3 additions and 4 deletions
|
@ -316,6 +316,7 @@ namespace Zint {
|
||||||
fontLarge.setPixelSize(fontPixelSizeLarge);
|
fontLarge.setPixelSize(fontPixelSizeLarge);
|
||||||
|
|
||||||
if (m_lastError.length()) {
|
if (m_lastError.length()) {
|
||||||
|
fontLarge.setPointSize(14);
|
||||||
painter.setFont(fontLarge);
|
painter.setFont(fontLarge);
|
||||||
painter.drawText(paintRect, Qt::AlignCenter, m_lastError);
|
painter.drawText(paintRect, Qt::AlignCenter, m_lastError);
|
||||||
return;
|
return;
|
||||||
|
@ -346,10 +347,8 @@ namespace Zint {
|
||||||
qreal gwidth = m_zintSymbol->width;
|
qreal gwidth = m_zintSymbol->width;
|
||||||
qreal gheight = m_zintSymbol->height;
|
qreal gheight = m_zintSymbol->height;
|
||||||
if (m_zintSymbol->symbology == BARCODE_MAXICODE) {
|
if (m_zintSymbol->symbology == BARCODE_MAXICODE) {
|
||||||
gheight *= (maxi_width);
|
gwidth = (33.0 * maxi_width) + xoffset + xoffset;
|
||||||
gwidth *= (maxi_width + 1);
|
gheight = (32.0 * maxi_width) + yoffset + yoffset;
|
||||||
gwidth *= 2.0;
|
|
||||||
gheight *= 2.0;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
if (m_zintSymbol->output_options & BARCODE_DOTTY_MODE) {
|
if (m_zintSymbol->output_options & BARCODE_DOTTY_MODE) {
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue