Don't add resolution to IPP attrs if not set when adjusting for URF
This commit is contained in:
parent
e5b105a3c6
commit
86b580c15f
1 changed files with 9 additions and 5 deletions
|
@ -426,12 +426,16 @@ void IppPrinter::print(QJsonObject attrs, QString filename, bool alwaysConvert,
|
|||
{
|
||||
HwResX = HwResY;
|
||||
}
|
||||
|
||||
if(attrs.contains("printer-resolution"))
|
||||
{
|
||||
QJsonObject tmpObj;
|
||||
tmpObj["units"] = PrinterResolutionRef.toObject()["units"];
|
||||
tmpObj["x"] = (int)HwResX;
|
||||
tmpObj["y"] = (int)HwResY;
|
||||
attrs["printer-resolution"] = QJsonObject { {"tag", IppMsg::Resolution}, {"value", tmpObj} };
|
||||
}
|
||||
}
|
||||
|
||||
quint32 Quality = getAttrOrDefault(attrs, "print-quality").toInt();
|
||||
|
||||
|
|
Loading…
Reference in a new issue