From 3cfc390ecd7c7e9095c77383c460c522437bdabe Mon Sep 17 00:00:00 2001 From: Samuel Mehrbrodt Date: Thu, 9 Jul 2020 08:32:38 +0200 Subject: tdf#134646 Remove "nearest paper matching" feature This was introduced with da62b0feb684b34ab191fb0f03ed5432c14cba97 to find the best paper size for user defined page sizes. However, this leads to problems with Impress: Slides have screen sizes which have no relation to paper sizes. For the slide site "Screen (16:9)" the page size "Executive" is the nearest matching size. However, this paper is (though supported by printers), very uncommon. We do not want the nearest matching paper size the printer supports, but rather we want to fit the slide on the printer default paper. Note that finding a matching print paper still works (and it even has some fuzzy matching), so some sort of "nearest paper matching" still exists, (but with sane limits). Change-Id: Ie60023d64b251954aa50e8bbdd36f6a290b9f278 Reviewed-on: https://gerrit.libreoffice.org/c/core/+/98396 Tested-by: Jenkins Reviewed-by: Samuel Mehrbrodt --- vcl/osx/salprn.cxx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'vcl/osx/salprn.cxx') diff --git a/vcl/osx/salprn.cxx b/vcl/osx/salprn.cxx index bb35f74a5343..c0d05fde9fb5 100644 --- a/vcl/osx/salprn.cxx +++ b/vcl/osx/salprn.cxx @@ -448,7 +448,7 @@ bool AquaSalInfoPrinter::StartJob( const OUString* i_pFileName, // platform independent paper matching algorithm VclPtr pPrinter( i_rController.getPrinter() ); pPrinter->SetMapMode( MapMode( MapUnit::Map100thMM ) ); - pPrinter->SetPaperSizeUser( aCurSize, true ); + pPrinter->SetPaperSizeUser( aCurSize ); // create view NSView* pPrintView = [[AquaPrintView alloc] initWithController: &i_rController withInfoPrinter: this]; -- cgit