From 2d9580e6a65a2699ff61fc1b0e07f62b4946de84 Mon Sep 17 00:00:00 2001 From: Miklos Vajna Date: Thu, 1 Jul 2021 17:33:42 +0200 Subject: tdf#142871 sw HTML export: avoid unwanted inner PNG for images Regression from commit e76471c5ce725dae9abb6f78b7674c6f77df34f4 (sw XHTML / reqif export: export non-PNG graphic shapes directly, 2021-06-02), reqif wants to have a PNG fallback for non-PNG pixel formats, but this is not needed for plain HTML, make this reqif-only. Change-Id: I0fc1bc13ad4bf808afbe68407e7db802f910c7a7 Reviewed-on: https://gerrit.libreoffice.org/c/core/+/118233 Reviewed-by: Miklos Vajna Tested-by: Jenkins --- test/source/htmltesttools.cxx | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 'test/source') diff --git a/test/source/htmltesttools.cxx b/test/source/htmltesttools.cxx index 9f9a1bbddfc6..d61f07bd3d1b 100644 --- a/test/source/htmltesttools.cxx +++ b/test/source/htmltesttools.cxx @@ -8,6 +8,7 @@ */ #include +#include #include @@ -30,7 +31,9 @@ htmlDocUniquePtr HtmlTestTools::parseHtmlStream(SvStream* pStream) std::unique_ptr pBuffer(new sal_uInt8[nSize + 1]); pStream->ReadBytes(pBuffer.get(), nSize); pBuffer[nSize] = 0; - return htmlDocUniquePtr(htmlParseDoc(reinterpret_cast(pBuffer.get()), nullptr)); + auto pCharBuffer = reinterpret_cast(pBuffer.get()); + SAL_INFO("test", "HtmlTestTools::parseXmlStream: pBuffer is '" << pCharBuffer << "'"); + return htmlDocUniquePtr(htmlParseDoc(pCharBuffer, nullptr)); } /* vim:set shiftwidth=4 softtabstop=4 expandtab: */ -- cgit