[Libreoffice-commits] core.git: vcl/source

Miklos Vajna vmiklos at collabora.co.uk
Mon Jan 2 13:01:53 UTC 2017


 vcl/source/gdi/pdfwriter_impl.cxx |    7 +++++++
 vcl/source/gdi/pdfwriter_impl.hxx |   12 +-----------
 2 files changed, 8 insertions(+), 11 deletions(-)

New commits:
commit 49968942a62f6feb6db4dcf385ddee925a57b497
Author: Miklos Vajna <vmiklos at collabora.co.uk>
Date:   Mon Jan 2 12:33:41 2017 +0100

    vcl PDF export: enable MARK() in dbglevel<2 builds as well
    
    Instead of mandating dbglevel=2, use the already existing environment
    variable to avoid additional rebuilds.
    
    Change-Id: I9ac543522e0e79dd2be74e12d0dd0551be63988f
    Reviewed-on: https://gerrit.libreoffice.org/32638
    Reviewed-by: Miklos Vajna <vmiklos at collabora.co.uk>
    Tested-by: Jenkins <ci at libreoffice.org>

diff --git a/vcl/source/gdi/pdfwriter_impl.cxx b/vcl/source/gdi/pdfwriter_impl.cxx
index 7a78058..d75bdeb 100644
--- a/vcl/source/gdi/pdfwriter_impl.cxx
+++ b/vcl/source/gdi/pdfwriter_impl.cxx
@@ -13042,4 +13042,11 @@ void PDFWriterImpl::addStream( const OUString& rMimeType, PDFOutputStream* pStre
     }
 }
 
+void PDFWriterImpl::MARK( const char* pString )
+{
+    beginStructureElementMCSeq();
+    if (g_bDebugDisableCompression)
+        emitComment( pString );
+}
+
 /* vim:set shiftwidth=4 softtabstop=4 expandtab: */
diff --git a/vcl/source/gdi/pdfwriter_impl.hxx b/vcl/source/gdi/pdfwriter_impl.hxx
index f658533..d974442 100644
--- a/vcl/source/gdi/pdfwriter_impl.hxx
+++ b/vcl/source/gdi/pdfwriter_impl.hxx
@@ -1219,17 +1219,7 @@ public:
 
     // helper: eventually begin marked content sequence and
     // emit a comment in debug case
-    void MARK( const char*
-#if OSL_DEBUG_LEVEL > 1
-        pString
-#endif
-        )
-    {
-        beginStructureElementMCSeq();
-#if OSL_DEBUG_LEVEL > 1
-        emitComment( pString );
-#endif
-    }
+    void MARK( const char* pString );
 };
 
 class PdfBuiltinFontFace : public PhysicalFontFace


More information about the Libreoffice-commits mailing list