From f5f3f246f0e70f200bff71625a5cf15e83e46d58 Mon Sep 17 00:00:00 2001 From: Rodrigo Torres Date: Sun, 10 Sep 2017 01:03:32 -0300 Subject: [PATCH] Remove parameter that does nothing --- 3rdparty/zint-2.6.1/backend_qt/qzint.cpp | 2 +- 3rdparty/zint-2.6.1/backend_qt/qzint.h | 2 +- limereport/items/lrbarcodeitem.cpp | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/3rdparty/zint-2.6.1/backend_qt/qzint.cpp b/3rdparty/zint-2.6.1/backend_qt/qzint.cpp index ba5815f..cec92ce 100644 --- a/3rdparty/zint-2.6.1/backend_qt/qzint.cpp +++ b/3rdparty/zint-2.6.1/backend_qt/qzint.cpp @@ -300,7 +300,7 @@ namespace Zint { return result; } - void QZint::render(QPainter & painter, const QRectF & paintRect, AspectRatioMode mode) { + void QZint::render(QPainter & painter, const QRectF & paintRect) { bool textdone; int comp_offset = 0; int xoffset = m_whitespace; diff --git a/3rdparty/zint-2.6.1/backend_qt/qzint.h b/3rdparty/zint-2.6.1/backend_qt/qzint.h index 5c1f9e1..70b5acc 100644 --- a/3rdparty/zint-2.6.1/backend_qt/qzint.h +++ b/3rdparty/zint-2.6.1/backend_qt/qzint.h @@ -86,7 +86,7 @@ public: QString error_message(); - void render(QPainter & painter, const QRectF & paintRect, AspectRatioMode mode=IgnoreAspectRatio); + void render(QPainter & painter, const QRectF & paintRect); const QString & lastError(); bool hasErrors(); diff --git a/limereport/items/lrbarcodeitem.cpp b/limereport/items/lrbarcodeitem.cpp index 7af23bf..ff2e7cc 100644 --- a/limereport/items/lrbarcodeitem.cpp +++ b/limereport/items/lrbarcodeitem.cpp @@ -99,7 +99,7 @@ void BarcodeItem::paint(QPainter *ppainter, const QStyleOptionGraphicsItem *opti break; } - bc.render(*ppainter,bcRect,Zint::QZint::KeepAspectRatio); + bc.render(*ppainter,bcRect); ppainter->restore(); ItemDesignIntf::paint(ppainter,option,widget); }