CUPS treats the "landscape" option as a boolean value (IPP_TAG_BOOLEAN). In this case, all values other than "true", "on" and "yes" are considered as false. As a result, using an empty string as the value for the "landscape" option results in the print area still being portrait. Currently, the problem with printing landscape images (png, jpeg, etc.) in Qt programs (e.g. Okular, Gwenview) occurs on Fedora 41 and other distributions using cups-filters v2.0+. The patch adds passing the value "true" instead of an empty string for the "landscape" option, as CUPS expects for changing the orientation. Pick-to: 6.8 Change-Id: Ib7ad1e2debcfff10e673757c97ef5614fb59a6ca Reviewed-by: Albert Astals Cid <aacid@kde.org> Reviewed-by: Lars Knoll <lars@knoll.priv.no> (cherry picked from commit a77173486aaf9d2e4107f6e1120ac2316ae1c96f) Reviewed-by: Qt Cherry-pick Bot <cherrypick_bot@qt-project.org>
…
…
Description
Languages
C++
84.3%
HTML
4.9%
C
3.9%
CMake
3.6%
Objective-C++
2%
Other
0.8%