From 0fe2ff2eedb07d8b2f0abec6ad498fa3637995d3 Mon Sep 17 00:00:00 2001 From: Anton Thomasson Date: Wed, 10 Jun 2020 19:30:22 +0200 Subject: [PATCH] Fix URF resolution logic --- rpm/harbour-seaprint.spec | 2 +- rpm/harbour-seaprint.yaml | 2 +- src/ippprinter.cpp | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/rpm/harbour-seaprint.spec b/rpm/harbour-seaprint.spec index 0d4cada..87280ed 100644 --- a/rpm/harbour-seaprint.spec +++ b/rpm/harbour-seaprint.spec @@ -9,7 +9,7 @@ Name: harbour-seaprint # << macros Summary: SeaPrint -Version: 0.5 +Version: 0.5.1 Release: 1 Group: Qt/Qt License: LICENSE diff --git a/rpm/harbour-seaprint.yaml b/rpm/harbour-seaprint.yaml index 9c46975..1c6b90c 100644 --- a/rpm/harbour-seaprint.yaml +++ b/rpm/harbour-seaprint.yaml @@ -1,6 +1,6 @@ Name: harbour-seaprint Summary: SeaPrint -Version: 0.5 +Version: 0.5.1 Release: 1 # The contents of the Group field should be one of the groups listed here: # https://github.com/mer-tools/spectacle/blob/master/data/GROUPS diff --git a/src/ippprinter.cpp b/src/ippprinter.cpp index 4c1ae08..e3aec7a 100644 --- a/src/ippprinter.cpp +++ b/src/ippprinter.cpp @@ -376,7 +376,7 @@ void IppPrinter::print(QJsonObject attrs, QString filename, tmpObj["units"] = PrinterResolutionRef.toObject()["units"]; tmpObj["x"] = (int)HwResX; tmpObj["y"] = (int)HwResY; - attrs["printer-resolution"] = tmpObj; + attrs["printer-resolution"] = QJsonObject { {"tag", IppMsg::Resolution}, {"value", tmpObj} }; } quint32 Quality = getAttrOrDefault(attrs, "print-quality").toInt();