cid#1501377 Dereference after null check
[LibreOffice.git] / external / libepubgen / tdf-120491.patch
blob2a02a66e480822d63e8298f22935fafbf6891d49
1 From 92760e4b0b8da126029c5ff858ebec27df4acfa8 Mon Sep 17 00:00:00 2001
2 Subject: [PATCH] tdf#120491 EPUBHTMLGenerator: remove not needed <meta
3 content="text/html...">
5 IngramSpark flags this as an error, and not writing it still passes
6 epubcheck.
7 ---
8 src/lib/EPUBHTMLGenerator.cpp | 7 +------
9 1 file changed, 1 insertion(+), 6 deletions(-)
11 diff --git a/src/lib/EPUBHTMLGenerator.cpp b/src/lib/EPUBHTMLGenerator.cpp
12 index a950ea5..f6c2527 100644
13 --- src/lib/EPUBHTMLGenerator.cpp
14 +++ src/lib/EPUBHTMLGenerator.cpp
15 @@ -579,14 +579,9 @@ void EPUBHTMLGenerator::endDocument()
16 m_impl->m_document.openElement("title", RVNGPropertyList());
17 m_impl->m_document.closeElement("title");
19 - RVNGPropertyList metaAttrs;
20 - metaAttrs.insert("http-equiv", "content-type");
21 - metaAttrs.insert("content", "text/html; charset=UTF-8");
22 - m_impl->m_document.openElement("meta", metaAttrs);
23 - m_impl->m_document.closeElement("meta");
24 if (m_impl->m_version >= 30 && m_impl->m_layoutMethod == EPUB_LAYOUT_METHOD_FIXED)
26 - metaAttrs.clear();
27 + RVNGPropertyList metaAttrs;
28 metaAttrs.insert("name", "viewport");
29 std::stringstream content;
30 if (const librevenge::RVNGProperty *pageWidth = m_impl->m_actualPageProperties["fo:page-width"])
31 --
32 2.16.4