summaryrefslogtreecommitdiff
path: root/chart2
diff options
context:
space:
mode:
authorMarkus Mohrhard <markus.mohrhard@collabora.co.uk>2014-03-17 09:36:52 +0100
committerMarkus Mohrhard <markus.mohrhard@googlemail.com>2014-03-17 09:41:00 +0100
commit217731165a0d8ee512919dcb9ecec296c6ee4b4c (patch)
tree8e10362c333add394c1e1e028a91b8d310055c26 /chart2
parent2796aa203c563d45b12dd395a963724a1c0e42ed (diff)
fix rendering of invisible bubble
Change-Id: Iee14035b44ef808cca2ee426684733f20c1771ac
Diffstat (limited to 'chart2')
-rw-r--r--chart2/source/view/main/DummyXShape.cxx5
1 files changed, 4 insertions, 1 deletions
diff --git a/chart2/source/view/main/DummyXShape.cxx b/chart2/source/view/main/DummyXShape.cxx
index 72c2139b3acb..9f79dd3494a6 100644
--- a/chart2/source/view/main/DummyXShape.cxx
+++ b/chart2/source/view/main/DummyXShape.cxx
@@ -546,8 +546,11 @@ void DummyCircle::render()
std::map<OUString, uno::Any>::const_iterator itr = maProperties.find("FillTransparence");
if(itr != maProperties.end())
{
- sal_Int32 nTrans = itr->second.get<sal_Int32>();
+ sal_Int32 nTrans = itr->second.get<sal_Int32>()/100.0*255;
nAlpha = 255 - static_cast<sal_uInt8>(nTrans & 0xFF);
+
+ if(nAlpha == 0)
+ return;
}
itr = maProperties.find("FillColor");