[Libreoffice-commits] core.git: Branch 'private/swe/libreoffice-5-2+backports' - vcl/source

Armin Le Grand (CIB) Armin.Le.Grand at cib.de
Thu Mar 22 10:40:56 UTC 2018


 vcl/source/gdi/pdfwriter_impl.cxx |    5 -----
 1 file changed, 5 deletions(-)

New commits:
commit 7bd94bb3731880cee39fd2028823fb4d40620152
Author: Armin Le Grand <Armin.Le.Grand at cib.de (CIB)>
Date:   Thu Mar 22 11:29:26 2018 +0100

    Revert "Filter out empty paths from PDF export."
    s is no longer needed with 'OperationSmiley'
    
    This reverts commit df4931c6b66c2691bcfe30fbcddf947cb3ab3fdf.

diff --git a/vcl/source/gdi/pdfwriter_impl.cxx b/vcl/source/gdi/pdfwriter_impl.cxx
index 3eb1ecc3c7aa..d1ce1e0b28d5 100644
--- a/vcl/source/gdi/pdfwriter_impl.cxx
+++ b/vcl/source/gdi/pdfwriter_impl.cxx
@@ -1440,11 +1440,6 @@ void PDFWriterImpl::PDFPage::convertRect( Rectangle& rRect ) const
 void PDFWriterImpl::PDFPage::appendPolygon( const tools::Polygon& rPoly, OStringBuffer& rBuffer, bool bClose ) const
 {
     sal_uInt16 nPoints = rPoly.GetSize();
-
-    // "empty" zero-sized path can be removed to avoid visual artifacts in PDF
-    if (nPoints == 2 && rPoly[0] == rPoly[1])
-        return;
-
     /*
      *  #108582# applications do weird things
      */


More information about the Libreoffice-commits mailing list