Optimize raster logic a bit
This commit is contained in:
parent
b70be18897
commit
b7aeb097a3
1 changed files with 2 additions and 3 deletions
|
@ -425,7 +425,7 @@ void IppPrinter::adjustRasterSettings(QString documentFormat, QJsonObject& jobAt
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
//TODO? jobAttrs.remove("printer-resolution");
|
jobAttrs.remove("printer-resolution");
|
||||||
|
|
||||||
if(documentFormat == Mimer::PWG)
|
if(documentFormat == Mimer::PWG)
|
||||||
{
|
{
|
||||||
|
@ -450,8 +450,7 @@ void IppPrinter::adjustRasterSettings(QString documentFormat, QJsonObject& jobAt
|
||||||
Params.hwResW = AdjustedHwResX;
|
Params.hwResW = AdjustedHwResX;
|
||||||
Params.hwResH = AdjustedHwResY;
|
Params.hwResH = AdjustedHwResY;
|
||||||
}
|
}
|
||||||
|
else if(documentFormat == Mimer::URF)
|
||||||
if(documentFormat == Mimer::URF)
|
|
||||||
{ // Ensure symmetric resolution for URF
|
{ // Ensure symmetric resolution for URF
|
||||||
Params.hwResW = Params.hwResH = std::min(Params.hwResW, Params.hwResH);
|
Params.hwResW = Params.hwResH = std::min(Params.hwResW, Params.hwResH);
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue