Fabian Vogt
125958af54
- Add Fix-the-exiv2-fix.patch to fix a bug in the previous patch that could cause crashes when opening certain JPG files (that contain XMP tags) Should be fine now... OBS-URL: https://build.opensuse.org/request/show/662652 OBS-URL: https://build.opensuse.org/package/show/KDE:Extra/krita?expand=0&rev=90
26 lines
1.0 KiB
Diff
26 lines
1.0 KiB
Diff
From 2b4671f64e35bee3a6ea4ad962570781336ff267 Mon Sep 17 00:00:00 2001
|
|
From: Boudewijn Rempt <boud@valdyas.org>
|
|
Date: Thu, 3 Jan 2019 11:43:56 +0100
|
|
Subject: Fix the exiv2 fix...
|
|
|
|
---
|
|
libs/ui/kisexiv2/kis_xmp_io.cpp | 4 ++--
|
|
1 file changed, 2 insertions(+), 2 deletions(-)
|
|
|
|
diff --git a/libs/ui/kisexiv2/kis_xmp_io.cpp b/libs/ui/kisexiv2/kis_xmp_io.cpp
|
|
index db76f25..d334b05 100644
|
|
--- a/libs/ui/kisexiv2/kis_xmp_io.cpp
|
|
+++ b/libs/ui/kisexiv2/kis_xmp_io.cpp
|
|
@@ -276,7 +276,7 @@ bool KisXMPIO::loadFrom(KisMetaData::Store* store, QIODevice* ioDevice) const
|
|
const Exiv2::XmpArrayValue* xav = dynamic_cast<const Exiv2::XmpArrayValue*>(value.get());
|
|
Q_ASSERT(xav);
|
|
QList<KisMetaData::Value> array;
|
|
- for (int i = 0; i < xav->size(); ++i) {
|
|
+ for (int i = 0; i < xav->count(); ++i) {
|
|
QString value = QString::fromStdString(xav->toString(i));
|
|
if (parser) {
|
|
array.push_back(parser->parse(value));
|
|
--
|
|
cgit v1.1
|
|
|