diff options
author | Fridrich Štrba <fridrich.strba@bluewin.ch> | 2015-12-14 01:00:30 +0100 |
---|---|---|
committer | Fridrich Štrba <fridrich.strba@bluewin.ch> | 2015-12-14 01:00:30 +0100 |
commit | 0ef93c0af5304b7876813a6fcff7cdaabc380cee (patch) | |
tree | cba1cbcc4e4e2466a93fab383dc7e3521916cbdc | |
parent | e7806e9b217fcd195b5f8297091fa83b40b8a95d (diff) |
Consider transparency in the solid fill we use instead of hatching
Change-Id: I429d20b2bad02781d22282f4eee72222c19e31f3
-rw-r--r-- | src/lib/VSDContentCollector.cpp | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/src/lib/VSDContentCollector.cpp b/src/lib/VSDContentCollector.cpp index e66984a..0037bd2 100644 --- a/src/lib/VSDContentCollector.cpp +++ b/src/lib/VSDContentCollector.cpp @@ -2609,6 +2609,10 @@ void libvisio::VSDContentCollector::_fillAndShadowProperties(const VSDFillStyle { styleProps.insert("draw:fill", "solid"); styleProps.insert("draw:fill-color", getColourString(style.bgColour)); + if (style.bgTransparency > 0) + styleProps.insert("draw:opacity", 1 - style.bgTransparency, librevenge::RVNG_PERCENT); + else + styleProps.remove("draw:opacity"); } if (style.shadowPattern) |