summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--src/lib/VSDContentCollector.cpp4
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)