Drop pointless print format limitation of PDF export

PRINT_SIZE_NORMAL is the default, so will be used anyway, when export
doesn't provide an explicit value. Preventing an explicitly provided
value is wrong.

Change-Id: I4781f429741f3882cc9c716839763ccddfc07652
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/158619
Tested-by: Jenkins
Reviewed-by: Mike Kaganski <mike.kaganski@collabora.com>
This commit is contained in:
Mike Kaganski 2023-10-29 14:48:48 +03:00
parent 66937039f5
commit ee7d7fa79e

View file

@ -1532,9 +1532,6 @@ void SmDocShell::Impl_Print(OutputDevice& rOutDev, const SmPrintUIOptions& rPrin
Size aSize(GetSize());
MapMode OutputMapMode;
// PDF export should always use PRINT_SIZE_NORMAL ...
if (!rPrintUIOptions.getBoolValue("IsPrinter"))
ePrintSize = PRINT_SIZE_NORMAL;
switch (ePrintSize)
{
case PRINT_SIZE_NORMAL: