tdf#129638 print preview: use new paper size after switching page
This is a partial revert of LO 6.3
commit 2c23a96f7b
.
Change-Id: I17525d06d96779671caaa84e1e48629289453ad2
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/125685
Tested-by: Jenkins
Reviewed-by: Justin Luth <jluth@mail.com>
This commit is contained in:
@@ -984,6 +984,7 @@ void PrintDialog::preparePreview( bool i_bMayUseCache )
|
|||||||
{
|
{
|
||||||
PrinterController::PageSize aPageSize =
|
PrinterController::PageSize aPageSize =
|
||||||
maPController->getFilteredPageFile( mnCurPage, aMtf, i_bMayUseCache );
|
maPController->getFilteredPageFile( mnCurPage, aMtf, i_bMayUseCache );
|
||||||
|
aCurPageSize = aPrt->PixelToLogic(aPrt->GetPaperSizePixel(), MapMode(MapUnit::Map100thMM));
|
||||||
if( ! aPageSize.bFullPaper )
|
if( ! aPageSize.bFullPaper )
|
||||||
{
|
{
|
||||||
const MapMode aMapMode( MapUnit::Map100thMM );
|
const MapMode aMapMode( MapUnit::Map100thMM );
|
||||||
|
Reference in New Issue
Block a user