diff options
author | Miklos Vajna <vmiklos@collabora.co.uk> | 2017-01-02 12:33:41 +0100 |
---|---|---|
committer | Miklos Vajna <vmiklos@collabora.co.uk> | 2017-01-02 13:00:53 +0000 |
commit | 49968942a62f6feb6db4dcf385ddee925a57b497 (patch) | |
tree | 7eda68dbfdccaf17e55853f2f59ffd6218db123b /vcl | |
parent | 20abf5f66b77bf0975eb93cb291af7ea79a45089 (diff) |
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@collabora.co.uk>
Tested-by: Jenkins <ci@libreoffice.org>
Diffstat (limited to 'vcl')
-rw-r--r-- | vcl/source/gdi/pdfwriter_impl.cxx | 7 | ||||
-rw-r--r-- | vcl/source/gdi/pdfwriter_impl.hxx | 12 |
2 files changed, 8 insertions, 11 deletions
diff --git a/vcl/source/gdi/pdfwriter_impl.cxx b/vcl/source/gdi/pdfwriter_impl.cxx index 7a78058d7730..d75bdeb36d23 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 f658533d8625..d974442aae29 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 |