diff options
author | ALONSO Laurent <laurent.alonso@inria.fr> | 2021-09-04 16:59:55 +0200 |
---|---|---|
committer | ALONSO Laurent <laurent.alonso@inria.fr> | 2021-09-04 16:59:55 +0200 |
commit | 28612b413184ff0a7fd24c0556ff9b2f79fb22e6 (patch) | |
tree | c782945fcec21e38b34b32b66afb27bb7a0a641f | |
parent | 480a5ee2a4f1cad19d020ce622bf2791faf76f44 (diff) |
pages: try to force transparent frame to be transparent...
Change-Id: Id64c4882ae15d6f09db0889f2ae4b55b022d6aba
-rw-r--r-- | src/lib/IWORKTextRedirector.cpp | 13 |
1 files changed, 12 insertions, 1 deletions
diff --git a/src/lib/IWORKTextRedirector.cpp b/src/lib/IWORKTextRedirector.cpp index ef93048..97ba139 100644 --- a/src/lib/IWORKTextRedirector.cpp +++ b/src/lib/IWORKTextRedirector.cpp @@ -271,7 +271,18 @@ void IWORKTextRedirector::closeTable() } void IWORKTextRedirector::openFrame(const librevenge::RVNGPropertyList &propList) { - m_iface->openFrame(propList); + if (propList["draw:fill"] && propList["draw:fill"]->getStr()=="none" && !propList["draw:opacity"]) + { + // actually, draw:fill="none" does not imply that the background is transparent + // either we modify it here or in libodfgen + librevenge::RVNGPropertyList finalPropList(propList); + finalPropList.insert("draw:fill", "solid"); + finalPropList.insert("draw:fill-color", "#000000"); + finalPropList.insert("draw:opacity", "0%"); + m_iface->openFrame(finalPropList); + } + else + m_iface->openFrame(propList); } void IWORKTextRedirector::closeFrame() { |