Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

ppd-cache.c: Use 0.5mm for delta when comparing sizes #46

Merged
merged 1 commit into from
Aug 2, 2024

Conversation

zdohnal
Copy link
Member

@zdohnal zdohnal commented Aug 2, 2024

@szlt5 found out libppd does not use the same delta as CUPS, which causes filters to use first size from the array, because the similar size according PWG (which recommends max delta 0.5mm) is not matched as useable.

Related to #29, but not fixing the original issue.

@szlt5 thank you for finding it!

@szlt5 found out libppd does not use the same delta as CUPS, which
causes filters to use first size from the array, because the similar
size according PWG (which recommends max delta 0.5mm) is not matched as
useable.

Related to OpenPrinting#29, but not fixing the original issue.
@tillkamppeter tillkamppeter merged commit c9f3e8f into OpenPrinting:master Aug 2, 2024
@szlt5
Copy link

szlt5 commented Aug 2, 2024

@tillkamppeter So fast to approve...

@zdohnal Thanks, but the fix is ​​incomplete. There is another macro _PPD_PWG_EQUIVALENT in the ppd-ipp.c.
Both the #29 and mine can be fixed after update the macro _PPD_PWG_EQUIVALENT in the ppd-ipp.c. I have tested them.

@zdohnal
Copy link
Member Author

zdohnal commented Aug 2, 2024

@szlt5 I'm sorry, I have pushed the additional change now (@tillkamppeter I took the liberty to do it without review, since it is the same fix).
I was testing the fix myself too and I concur it works. @szlt5 thanks for the help!

@zdohnal
Copy link
Member Author

zdohnal commented Aug 2, 2024

I have the additional change prepared in the branch once I saw @szlt5 comment, but I was too slow :D .

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants