svggnode.cxx (50b37974) svggnode.cxx (01e92ad6)
1/**************************************************************
2 *
3 * Licensed to the Apache Software Foundation (ASF) under one
4 * or more contributor license agreements. See the NOTICE file
5 * distributed with this work for additional information
6 * regarding copyright ownership. The ASF licenses this file
7 * to you under the Apache License, Version 2.0 (the
8 * "License"); you may not use this file except in compliance

--- 82 unchanged lines hidden (view full) ---

91 void SvgGNode::decomposeSvgNode(drawinglayer::primitive2d::Primitive2DSequence& rTarget, bool bReferenced) const
92 {
93 const SvgStyleAttributes* pStyle = getSvgStyleAttributes();
94
95 if(pStyle)
96 {
97 const double fOpacity(pStyle->getOpacity().getNumber());
98
1/**************************************************************
2 *
3 * Licensed to the Apache Software Foundation (ASF) under one
4 * or more contributor license agreements. See the NOTICE file
5 * distributed with this work for additional information
6 * regarding copyright ownership. The ASF licenses this file
7 * to you under the Apache License, Version 2.0 (the
8 * "License"); you may not use this file except in compliance

--- 82 unchanged lines hidden (view full) ---

91 void SvgGNode::decomposeSvgNode(drawinglayer::primitive2d::Primitive2DSequence& rTarget, bool bReferenced) const
92 {
93 const SvgStyleAttributes* pStyle = getSvgStyleAttributes();
94
95 if(pStyle)
96 {
97 const double fOpacity(pStyle->getOpacity().getNumber());
98
99 if(fOpacity > 0.0)
99 if(fOpacity > 0.0 && Display_none != getDisplay())
100 {
101 drawinglayer::primitive2d::Primitive2DSequence aContent;
102
103 // decompose childs
104 SvgNode::decomposeSvgNode(aContent, bReferenced);
105
106 if(aContent.hasElements())
107 {
108 pStyle->add_postProcess(rTarget, aContent, getTransform());
109 }
110 }
111 }
112 }
113 } // end of namespace svgreader
114} // end of namespace svgio
115
116//////////////////////////////////////////////////////////////////////////////
117// eof
100 {
101 drawinglayer::primitive2d::Primitive2DSequence aContent;
102
103 // decompose childs
104 SvgNode::decomposeSvgNode(aContent, bReferenced);
105
106 if(aContent.hasElements())
107 {
108 pStyle->add_postProcess(rTarget, aContent, getTransform());
109 }
110 }
111 }
112 }
113 } // end of namespace svgreader
114} // end of namespace svgio
115
116//////////////////////////////////////////////////////////////////////////////
117// eof