[Libreoffice-commits] libvisio.git: src/lib
Fridrich Štrba
fridrich.strba at bluewin.ch
Sun Dec 13 16:06:17 PST 2015
src/lib/VSDContentCollector.cpp | 4 ++++
1 file changed, 4 insertions(+)
New commits:
commit 0ef93c0af5304b7876813a6fcff7cdaabc380cee
Author: Fridrich Štrba <fridrich.strba at bluewin.ch>
Date: Mon Dec 14 01:00:30 2015 +0100
Consider transparency in the solid fill we use instead of hatching
Change-Id: I429d20b2bad02781d22282f4eee72222c19e31f3
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)
More information about the Libreoffice-commits
mailing list