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.
https://gerrit.libreoffice.org/c/core/+/199708
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.
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.
*** Bug 166421 has been marked as a duplicate of this bug. ***
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.
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.