Fix URF resolution logic

This commit is contained in:
Anton Thomasson 2020-06-10 19:30:22 +02:00
parent 8af058021e
commit 0fe2ff2eed
3 changed files with 3 additions and 3 deletions

View file

@ -9,7 +9,7 @@ Name: harbour-seaprint
# << macros
Summary: SeaPrint
Version: 0.5
Version: 0.5.1
Release: 1
Group: Qt/Qt
License: LICENSE

View file

@ -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

View file

@ -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();