[Libreoffice-commits] core.git: Branch 'distro/collabora/cp-6.2' - filter/source

Aron Budea (via logerrit) logerrit at kemper.freedesktop.org
Thu Sep 26 11:04:08 UTC 2019


 filter/source/pdf/pdfexport.cxx |    3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

New commits:
commit 73d6b3c2cb05f0fa79d9f56cf9cdc28d5d90c5e1
Author:     Aron Budea <aron.budea at collabora.com>
AuthorDate: Fri Sep 20 04:54:00 2019 +0200
Commit:     Andras Timar <andras.timar at collabora.com>
CommitDate: Thu Sep 26 13:03:14 2019 +0200

    tdf#124377: enable anti-aliasing metafile during redaction
    
    Change-Id: I6c8a0f6ceaad5d9ec47cce1b00b8ccdd77530aaf
    Reviewed-on: https://gerrit.libreoffice.org/79266
    Tested-by: Jenkins
    Reviewed-by: Muhammet Kara <muhammet.kara at collabora.com>
    (cherry picked from commit cd6780aae1392d4c1af0b15b311a4966834a9602)
    Reviewed-on: https://gerrit.libreoffice.org/79479
    Tested-by: Jenkins CollaboraOffice <jenkinscollaboraoffice at gmail.com>
    Reviewed-by: Andras Timar <andras.timar at collabora.com>

diff --git a/filter/source/pdf/pdfexport.cxx b/filter/source/pdf/pdfexport.cxx
index 63d7d79aa046..74c74ea0c8f9 100644
--- a/filter/source/pdf/pdfexport.cxx
+++ b/filter/source/pdf/pdfexport.cxx
@@ -236,7 +236,8 @@ bool PDFExport::ExportSelection( vcl::PDFWriter& rPDFWriter,
                             try
                             {
                                 Graphic aGraph(aMtf);
-                                BitmapEx bmp = aGraph.GetBitmapEx();
+                                // use antialiasing to improve how graphic objects look
+                                BitmapEx bmp = aGraph.GetBitmapEx(GraphicConversionParameters(Size(0, 0), false, true, false));
                                 Graphic bgraph(bmp);
                                 aMtf = bgraph.GetGDIMetaFile();
                             }


More information about the Libreoffice-commits mailing list