summaryrefslogtreecommitdiff
path: root/test/source
diff options
context:
space:
mode:
authorMiklos Vajna <vmiklos@collabora.com>2021-07-01 17:33:42 +0200
committerMiklos Vajna <vmiklos@collabora.com>2021-07-01 18:25:01 +0200
commit2d9580e6a65a2699ff61fc1b0e07f62b4946de84 (patch)
treec5dc104cb2e98fe3e1a3d586d0824bd6c7990fbe /test/source
parent1e3263a677b61c718d0fd1be15c066b933f7de18 (diff)
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 <vmiklos@collabora.com> Tested-by: Jenkins
Diffstat (limited to 'test/source')
-rw-r--r--test/source/htmltesttools.cxx5
1 files changed, 4 insertions, 1 deletions
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 <test/htmltesttools.hxx>
+#include <sal/log.hxx>
#include <memory>
@@ -30,7 +31,9 @@ htmlDocUniquePtr HtmlTestTools::parseHtmlStream(SvStream* pStream)
std::unique_ptr<sal_uInt8[]> pBuffer(new sal_uInt8[nSize + 1]);
pStream->ReadBytes(pBuffer.get(), nSize);
pBuffer[nSize] = 0;
- return htmlDocUniquePtr(htmlParseDoc(reinterpret_cast<xmlChar*>(pBuffer.get()), nullptr));
+ auto pCharBuffer = reinterpret_cast<xmlChar*>(pBuffer.get());
+ SAL_INFO("test", "HtmlTestTools::parseXmlStream: pBuffer is '" << pCharBuffer << "'");
+ return htmlDocUniquePtr(htmlParseDoc(pCharBuffer, nullptr));
}
/* vim:set shiftwidth=4 softtabstop=4 expandtab: */