summaryrefslogtreecommitdiff
path: root/starmath
diff options
context:
space:
mode:
authorMike Kaganski <mike.kaganski@collabora.com>2023-10-29 14:45:01 +0300
committerMike Kaganski <mike.kaganski@collabora.com>2023-10-29 20:26:14 +0100
commit66937039f5b627f0486b116266c80612238e80b3 (patch)
tree68f575a289cf3f847539db728978ed7bc8370cd3 /starmath
parent9278577e8f3a3d8a65a3a02c2d4c59b5fa4c26ec (diff)
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>
Diffstat (limited to 'starmath')
-rw-r--r--starmath/source/document.cxx2
1 files changed, 1 insertions, 1 deletions
diff --git a/starmath/source/document.cxx b/starmath/source/document.cxx
index 59b23522ffa5..213e16dd31bf 100644
--- a/starmath/source/document.cxx
+++ b/starmath/source/document.cxx
@@ -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);