starmath/source/document.cxx |    5 +----
 1 file changed, 1 insertion(+), 4 deletions(-)

New commits:
commit ee7d7fa79eae4979ed45f757430664b333faad1f
Author:     Mike Kaganski <mike.kagan...@collabora.com>
AuthorDate: Sun Oct 29 14:48:48 2023 +0300
Commit:     Mike Kaganski <mike.kagan...@collabora.com>
CommitDate: Sun Oct 29 20:26:25 2023 +0100

    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.kagan...@collabora.com>

diff --git a/starmath/source/document.cxx b/starmath/source/document.cxx
index 213e16dd31bf..04c348cbab45 100644
--- a/starmath/source/document.cxx
+++ b/starmath/source/document.cxx
@@ -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:
commit 66937039f5b627f0486b116266c80612238e80b3
Author:     Mike Kaganski <mike.kagan...@collabora.com>
AuthorDate: Sun Oct 29 14:45:01 2023 +0300
Commit:     Mike Kaganski <mike.kagan...@collabora.com>
CommitDate: Sun Oct 29 20:26:14 2023 +0100

    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.kagan...@collabora.com>

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);
 

Reply via email to