Only decrase zoom on fit-to-page printout when printing frame

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

View file

@ -1547,7 +1547,7 @@ void SmDocShell::Impl_Print(OutputDevice& rOutDev, const SmPrintUIOptions& rPrin
sal_uInt16 nZ
= std::min(o3tl::convert(aOutRect.GetWidth(), 100, aSize.Width()),
o3tl::convert(aOutRect.GetHeight(), 100, aSize.Height()));
if (nZ > MINZOOM)
if (bIsPrintFrame && nZ > MINZOOM)
nZ -= 10;
Fraction aFraction(std::clamp(nZ, MINZOOM, MAXZOOM), 100);