diff options
author | Daniel <danielfaleirosilva@gmail.com> | 2019-01-16 18:51:47 -0200 |
---|---|---|
committer | Michael Weghorn <m.weghorn@posteo.de> | 2019-01-29 20:25:48 +0100 |
commit | eaec995a96b41963ae9e5156b6c5c7ac022f9a55 (patch) | |
tree | b56a6029b61e11312c7f014926bb60b8a66297a9 /vcl | |
parent | 77e2aba5a505762383b786c246754d51c9bcb1dc (diff) |
tdf#122079 - Document orientation is no longer changed in print dialog
Change-Id: I9d13cfd136f9b70674b3e43268525f8a6e1c0954
Reviewed-on: https://gerrit.libreoffice.org/66483
Tested-by: Jenkins
Reviewed-by: Mike Kaganski <mike.kaganski@collabora.com>
Reviewed-by: Michael Weghorn <m.weghorn@posteo.de>
Diffstat (limited to 'vcl')
-rw-r--r-- | vcl/source/window/printdlg.cxx | 13 |
1 files changed, 1 insertions, 12 deletions
diff --git a/vcl/source/window/printdlg.cxx b/vcl/source/window/printdlg.cxx index 73d7b5b9a50f..e4a285e84575 100644 --- a/vcl/source/window/printdlg.cxx +++ b/vcl/source/window/printdlg.cxx @@ -1006,21 +1006,14 @@ void PrintDialog::preparePreview( bool i_bMayUseCache ) void PrintDialog::updateOrientationBox( const bool bAutomatic ) { - Orientation eOrientation = maPController->getPrinter()->GetOrientation(); if ( !bAutomatic ) { + Orientation eOrientation = maPController->getPrinter()->GetOrientation(); mpOrientationBox->SelectEntryPos( static_cast<sal_Int32>(eOrientation) + 1 ); - - maPController->setValue( "IsLandscape", - makeAny( static_cast<sal_Int32>(eOrientation) ) ); } else if ( hasOrientationChanged() ) { mpOrientationBox->SelectEntryPos( ORIENTATION_AUTOMATIC ); - - // used to make sure document orientation matches printer paper orientation - maPController->setValue( "IsLandscape", - makeAny( static_cast<sal_Int32>(eOrientation) ) ); } } @@ -1061,10 +1054,6 @@ void PrintDialog::setPaperOrientation( Orientation eOrientation ) Size& aPaperSize = maPController->getPaperSizeSetup(); checkPaperSize( aPaperSize ); } - - // used to sync printer paper orientation with document orientation - maPController->setValue( "IsLandscape", - makeAny( static_cast<sal_Int32>(eOrientation) ) ); } void PrintDialog::checkControlDependencies() |