vcl/source/gdi/print3.cxx | 1 +
1 file changed, 1 insertion(+)
New commits:
commit 5ccee13baa29c9899c88519ad71ed18c3fe944c1
Author: Tibor Nagy <[email protected]>
AuthorDate: Sun Feb 11 16:25:48 2024 +0100
Commit: Nagy Tibor <[email protected]>
CommitDate: Sun Feb 11 18:52:48 2024 +0100
tdf#155218 sc: fix incorrect print area
In the print dialog, changes to the page orientation should not alter
the print area that is defined by the page style.
issue caused by commit I5e494a0714e398221bee00744d7e25c419a41df7
(tdf#155218 sc: fix different page orientation in print dialog)
Change-Id: I44eb3b30df0e8a227743df334da35316f86a0679
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/163231
Tested-by: Jenkins
Reviewed-by: Nagy Tibor <[email protected]>
diff --git a/vcl/source/gdi/print3.cxx b/vcl/source/gdi/print3.cxx
index dde3d8368116..a43bc41599cd 100644
--- a/vcl/source/gdi/print3.cxx
+++ b/vcl/source/gdi/print3.cxx
@@ -514,6 +514,7 @@ bool
Printer::PreparePrintJob(std::shared_ptr<PrinterController> xController,
PrintDialog aDlg(xController->getWindow(), xController);
if (!aDlg.run())
{
+ xController->getPrinter()->SetUsePrintDialogSetting(false);
xController->abortJob();
return false;
}