Bug 170892 - Print dialog in Calc: changing printer, selected paper changes erratically
Summary: Print dialog in Calc: changing printer, selected paper changes erratically
Status: RESOLVED FIXED
Alias: None
Product: LibreOffice
Classification: Unclassified
Component: Calc (show other bugs)
Version:
(earliest affected)
25.2.0.3 release
Hardware: All All
: medium normal
Assignee: Mike Kaganski
URL:
Whiteboard: target:26.8.0 target:26.2.2 target:26...
Keywords:
: 166421 (view as bug list)
Depends on:
Blocks:
 
Reported: 2026-02-19 10:12 UTC by Mike Kaganski
Modified: 2026-02-20 13:07 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-19 10:12:43 UTC
1. Create a new Calc document.
2. File->Print to see the Print dialog.
3. Note the paper size (in Paper size drop-down box, and also on preview)
4. Select another printer in the Printer drop-down box

=> the page changes randomly.

E.g., in my testing, with each change of selected printer, the page changed like this:

A4 (210x297) -> Executive (184x267) -> B4 (JIS) (257x364) -> User-defined (127x178) -> B5 (ISO) (176x250) ...

Expected: the page size stays the same. Especially when the original page size is common, so definitely exists in the newly selected printer.

Regression after commit 43e511e642a2ce7026b30ea5c212940ff3eb522e; also related: commit cc65bec38ca26265ce8ecfd02110c26bcc62b79b.
Comment 1 Mike Kaganski 2026-02-19 10:17:31 UTC
https://gerrit.libreoffice.org/c/core/+/199708
Comment 2 Commit Notification 2026-02-19 13:02:04 UTC
Mike Kaganski committed a patch related to this issue.
It has been pushed to "master":

https://git.libreoffice.org/core/commit/881ce5f6cf3ceabafbd8330a5899cf1abc654148

tdf#170892: don't call updatePageSize too early in printer selection

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 3 Commit Notification 2026-02-20 06:55:27 UTC
Mike Kaganski committed a patch related to this issue.
It has been pushed to "libreoffice-26-2":

https://git.libreoffice.org/core/commit/7bdb073213e34c96b5e97f40de69b240d3ec24dd

tdf#170892: don't call updatePageSize too early in printer selection

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.
Comment 4 Xisco Faulí 2026-02-20 09:44:02 UTC
*** Bug 166421 has been marked as a duplicate of this bug. ***
Comment 5 Commit Notification 2026-02-20 10:44:42 UTC
Mike Kaganski committed a patch related to this issue.
It has been pushed to "libreoffice-26-2-1":

https://git.libreoffice.org/core/commit/389fb881624939440fe71d5671b84fa7133e86b3

tdf#170892: don't call updatePageSize too early in printer selection

It will be available in 26.2.1.

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 13:07:21 UTC
Mike Kaganski committed a patch related to this issue.
It has been pushed to "libreoffice-25-8":

https://git.libreoffice.org/core/commit/5b29b24af5c9ec8c7685d164e6c5038970f26eab

tdf#170892: don't call updatePageSize too early in printer selection

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.