summaryrefslogtreecommitdiff
path: root/vcl
diff options
context:
space:
mode:
Diffstat (limited to 'vcl')
-rw-r--r--vcl/source/window/printdlg.cxx8
1 files changed, 7 insertions, 1 deletions
diff --git a/vcl/source/window/printdlg.cxx b/vcl/source/window/printdlg.cxx
index 9cf25e95a126..c4ea5c7aac3c 100644
--- a/vcl/source/window/printdlg.cxx
+++ b/vcl/source/window/printdlg.cxx
@@ -1608,7 +1608,9 @@ IMPL_LINK( PrintDialog, ClickHdl, Button*, pButton )
if( pButton == maJobPage.mpSetupButton )
{
maPController->setupPrinter( this );
- preparePreview( true, true );
+
+ // tdf#63905 don't use cache: page size may change
+ preparePreview( true, false );
}
checkControlDependencies();
}
@@ -1758,6 +1760,10 @@ IMPL_LINK( PrintDialog, UIOption_RadioHdl, RadioButton*, i_pBtn )
sal_Int32 nVal = it->second;
pVal->Value <<= nVal;
+ // tdf#63905 use paper size set in printer properties
+ if (pVal->Name == "PageOptions")
+ maPController->resetPaperToLastConfigured();
+
checkOptionalControlDependencies();
// update preview and page settings