mirror of
https://invent.kde.org/frameworks/kimageformats.git
synced 2026-11-01 00:48:49 -04:00
MicroExif: fix wrong software tag in MicroExif::fromImage
This commit is contained in:
@@ -1581,7 +1581,7 @@ MicroExif MicroExif::fromImage(const QImage &image)
|
|||||||
// TIFF Software
|
// TIFF Software
|
||||||
if (exif.software().isEmpty()) {
|
if (exif.software().isEmpty()) {
|
||||||
auto sw = QCoreApplication::applicationName();
|
auto sw = QCoreApplication::applicationName();
|
||||||
auto ver = sw = QCoreApplication::applicationVersion();
|
auto ver = QCoreApplication::applicationVersion();
|
||||||
if (!sw.isEmpty() && !ver.isEmpty())
|
if (!sw.isEmpty() && !ver.isEmpty())
|
||||||
sw.append(QStringLiteral(" %1").arg(ver));
|
sw.append(QStringLiteral(" %1").arg(ver));
|
||||||
exif.setSoftware(sw.trimmed());
|
exif.setSoftware(sw.trimmed());
|
||||||
|
|||||||
Reference in New Issue
Block a user