Skip to content

filter/rastertohp: fix short-edge (Tumble) duplex mode - #1704

Open
NishizakiHayato wants to merge 1 commit into
OpenPrinting:masterfrom
NishizakiHayato:master
Open

NishizakiHayato wants to merge 1 commit into
OpenPrinting:masterfrom
NishizakiHayato:master

Conversation

@NishizakiHayato

Copy link
Copy Markdown

'1 + header->Tumble != 0' parses as '(1 + header->Tumble) != 0' and is always 1, so ESC&l2S was never sent and short-edge jobs printed long-edge. Add the missing parentheses.
When I was using the Generic PCL Laser Printer driver from China Kylin Linux to control my printer, I encountered a problem where even though I selected short edge flipping for double-sided printing, the printer still flipped on the long edge. After investigating with AI, I discovered this error and applied a corrected driver. The results showed that the corrected driver worked as expected.
https://www.netlab.ac.cn/post/14.html

'1 + header->Tumble != 0' parses as '(1 + header->Tumble) != 0' and is always 1, so ESC&l2S was never sent and short-edge jobs printed long-edge.
Add the missing parentheses.
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.

1 participant