From e12dcd4df9486222df55d1bfa81484a3d25809e5 Mon Sep 17 00:00:00 2001 From: Arin Alexander Date: Thu, 19 Mar 2020 20:59:24 +0300 Subject: [PATCH] Redundant code has been removed --- common.pri | 2 +- limereport/items/lrimageitem.cpp | 11 +---------- 2 files changed, 2 insertions(+), 11 deletions(-) diff --git a/common.pri b/common.pri index 16e340f..69593fa 100644 --- a/common.pri +++ b/common.pri @@ -133,7 +133,7 @@ RCC_DIR = $${ARCH_DIR}/$${BUILD_TYPE}/rcc LIMEREPORT_VERSION_MAJOR = 1 LIMEREPORT_VERSION_MINOR = 5 -LIMEREPORT_VERSION_RELEASE = 43 +LIMEREPORT_VERSION_RELEASE = 44 LIMEREPORT_VERSION = '$${LIMEREPORT_VERSION_MAJOR}.$${LIMEREPORT_VERSION_MINOR}.$${LIMEREPORT_VERSION_RELEASE}' DEFINES *= LIMEREPORT_VERSION_STR=\\\"$${LIMEREPORT_VERSION}\\\" diff --git a/limereport/items/lrimageitem.cpp b/limereport/items/lrimageitem.cpp index 0baaac1..a58531b 100644 --- a/limereport/items/lrimageitem.cpp +++ b/limereport/items/lrimageitem.cpp @@ -155,16 +155,7 @@ void ImageItem::setImageAsByteArray(QByteArray image) { QImage value; value.loadFromData(image); - if (m_picture != value){ - QImage oldValue = m_picture; - m_picture = value; - if (m_autoSize){ - setWidth(m_picture.width()); - setHeight(m_picture.height()); - } - update(); - notify("image",oldValue,value); - } + setImage(value); } QString ImageItem::fileFilter() const