Bug 170910 - Portrait Letter / A4 page switches to Landscape, when Microsoft XPS Document Writer is selected in Print dialog
Summary: Portrait Letter / A4 page switches to Landscape, when Microsoft XPS Document ...
Status: RESOLVED FIXED
Alias: None
Product: LibreOffice
Classification: Unclassified
Component: Calc (show other bugs)
Version:
(earliest affected)
unspecified
Hardware: All Windows (All)
: medium normal
Assignee: Mike Kaganski
URL:
Whiteboard: target:26.8.0 target:25.8.6 target:26...
Keywords:
Depends on:
Blocks:
 
Reported: 2026-02-20 11:29 UTC by Mike Kaganski
Modified: 2026-02-20 18:59 UTC (History)
1 user (show)

See Also:
Crash report or crash signature:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Mike Kaganski 2026-02-20 11:29:42 UTC
With the fix for bug 170892 applied, and having Microsoft XPS Document Writer printer installed, but not set to default:

Create a new Calc document. Open Print dialog. See that the page is portrait (Letter or A4, per your locale). Select Microsoft XPS Document Writer printer.

=> the page turns landscape.

Regression after f736e3a0c23acf908462bfd184e1224c78244224.
Comment 1 Xisco Faulí 2026-02-20 11:39:22 UTC
Hi Mike,
Is this the same as bug 164088 ?
Comment 2 Mike Kaganski 2026-02-20 11:39:38 UTC
https://gerrit.libreoffice.org/c/core/+/199841
Comment 3 Mike Kaganski 2026-02-20 11:42:21 UTC
(In reply to Xisco Faulí from comment #1)

I don't know. But I prefer to have a very specific bug for the symptoms I found, with a very targeted fix. Here it is. Whatever happens to get fixed by it, will be its dupes.
Comment 4 Commit Notification 2026-02-20 15:23:44 UTC
Mike Kaganski committed a patch related to this issue.
It has been pushed to "master":

https://git.libreoffice.org/core/commit/d8a3c74a10e70bae243162cb08572a9c2f2552a3

tdf#170910: exact match can also be rotated

It will be available in 26.8.0.

The patch should be included in the daily builds available at
https://dev-builds.libreoffice.org/daily/ in the next 24-48 hours. More
information about daily builds can be found at:
https://wiki.documentfoundation.org/Testing_Daily_Builds

Affected users are encouraged to test the fix and report feedback.
Comment 5 Commit Notification 2026-02-20 18:59:31 UTC
Mike Kaganski committed a patch related to this issue.
It has been pushed to "libreoffice-25-8":

https://git.libreoffice.org/core/commit/4c656548afeda1bd5a2903b22a001fa24a8e6430

tdf#170910: exact match can also be rotated

It will be available in 25.8.6.

The patch should be included in the daily builds available at
https://dev-builds.libreoffice.org/daily/ in the next 24-48 hours. More
information about daily builds can be found at:
https://wiki.documentfoundation.org/Testing_Daily_Builds

Affected users are encouraged to test the fix and report feedback.
Comment 6 Commit Notification 2026-02-20 18:59:38 UTC
Mike Kaganski committed a patch related to this issue.
It has been pushed to "libreoffice-26-2":

https://git.libreoffice.org/core/commit/c0f4822eadadccd8908bd0c15731d79f0a8085af

tdf#170910: exact match can also be rotated

It will be available in 26.2.2.

The patch should be included in the daily builds available at
https://dev-builds.libreoffice.org/daily/ in the next 24-48 hours. More
information about daily builds can be found at:
https://wiki.documentfoundation.org/Testing_Daily_Builds

Affected users are encouraged to test the fix and report feedback.