| svgusenode.cxx (50b37974) | svgusenode.cxx (a275c134) |
|---|---|
| 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 --- 137 unchanged lines hidden (view full) --- 146 } 147 } 148 149 void SvgUseNode::decomposeSvgNode(drawinglayer::primitive2d::Primitive2DSequence& rTarget, bool /*bReferenced*/) const 150 { 151 // try to access link to content 152 const SvgNode* mpXLink = getDocument().findSvgNodeById(maXLink); 153 | 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 --- 137 unchanged lines hidden (view full) --- 146 } 147 } 148 149 void SvgUseNode::decomposeSvgNode(drawinglayer::primitive2d::Primitive2DSequence& rTarget, bool /*bReferenced*/) const 150 { 151 // try to access link to content 152 const SvgNode* mpXLink = getDocument().findSvgNodeById(maXLink); 153 |
| 154 if(mpXLink) | 154 if(mpXLink && Display_none != mpXLink->getDisplay()) |
| 155 { 156 // decompose childs 157 drawinglayer::primitive2d::Primitive2DSequence aNewTarget; 158 159 // todo: in case mpXLink is a SVGTokenSvg or SVGTokenSymbol the 160 // SVG docs want the getWidth() and getHeight() from this node 161 // to be valid for the subtree. 162 const_cast< SvgNode* >(mpXLink)->setAlternativeParent(this); --- 41 unchanged lines hidden --- | 155 { 156 // decompose childs 157 drawinglayer::primitive2d::Primitive2DSequence aNewTarget; 158 159 // todo: in case mpXLink is a SVGTokenSvg or SVGTokenSymbol the 160 // SVG docs want the getWidth() and getHeight() from this node 161 // to be valid for the subtree. 162 const_cast< SvgNode* >(mpXLink)->setAlternativeParent(this); --- 41 unchanged lines hidden --- |