Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/keepassxreboot/keepassxc.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'src/format/KeePass1Reader.cpp')
-rw-r--r--src/format/KeePass1Reader.cpp6
1 files changed, 1 insertions, 5 deletions
diff --git a/src/format/KeePass1Reader.cpp b/src/format/KeePass1Reader.cpp
index e4415af93..0b7f168a4 100644
--- a/src/format/KeePass1Reader.cpp
+++ b/src/format/KeePass1Reader.cpp
@@ -857,13 +857,9 @@ bool KeePass1Reader::parseCustomIcons4(const QByteArray& data)
if (static_cast<quint32>(data.size()) < (pos + iconSize)) {
return false;
}
- QImage icon = QImage::fromData(data.mid(pos, iconSize));
+ QByteArray icon = data.mid(pos, iconSize);
pos += iconSize;
- if (icon.width() != 16 || icon.height() != 16) {
- icon = icon.scaled(16, 16);
- }
-
QUuid uuid = QUuid::createUuid();
iconUuids.append(uuid);
m_db->metadata()->addCustomIcon(uuid, icon);