Fix URF resolution logic
This commit is contained in:
parent
8af058021e
commit
0fe2ff2eed
3 changed files with 3 additions and 3 deletions
|
@ -9,7 +9,7 @@ Name: harbour-seaprint
|
||||||
# << macros
|
# << macros
|
||||||
|
|
||||||
Summary: SeaPrint
|
Summary: SeaPrint
|
||||||
Version: 0.5
|
Version: 0.5.1
|
||||||
Release: 1
|
Release: 1
|
||||||
Group: Qt/Qt
|
Group: Qt/Qt
|
||||||
License: LICENSE
|
License: LICENSE
|
||||||
|
|
|
@ -1,6 +1,6 @@
|
||||||
Name: harbour-seaprint
|
Name: harbour-seaprint
|
||||||
Summary: SeaPrint
|
Summary: SeaPrint
|
||||||
Version: 0.5
|
Version: 0.5.1
|
||||||
Release: 1
|
Release: 1
|
||||||
# The contents of the Group field should be one of the groups listed here:
|
# The contents of the Group field should be one of the groups listed here:
|
||||||
# https://github.com/mer-tools/spectacle/blob/master/data/GROUPS
|
# https://github.com/mer-tools/spectacle/blob/master/data/GROUPS
|
||||||
|
|
|
@ -376,7 +376,7 @@ void IppPrinter::print(QJsonObject attrs, QString filename,
|
||||||
tmpObj["units"] = PrinterResolutionRef.toObject()["units"];
|
tmpObj["units"] = PrinterResolutionRef.toObject()["units"];
|
||||||
tmpObj["x"] = (int)HwResX;
|
tmpObj["x"] = (int)HwResX;
|
||||||
tmpObj["y"] = (int)HwResY;
|
tmpObj["y"] = (int)HwResY;
|
||||||
attrs["printer-resolution"] = tmpObj;
|
attrs["printer-resolution"] = QJsonObject { {"tag", IppMsg::Resolution}, {"value", tmpObj} };
|
||||||
}
|
}
|
||||||
|
|
||||||
quint32 Quality = getAttrOrDefault(attrs, "print-quality").toInt();
|
quint32 Quality = getAttrOrDefault(attrs, "print-quality").toInt();
|
||||||
|
|
Loading…
Reference in a new issue