| svgstyleattributes.cxx (e2bf1e9d) | svgstyleattributes.cxx (3aaca8a3) |
|---|---|
| 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 --- 189 unchanged lines hidden (view full) --- 198 if(rDocument.hasSvgStyleAttributesById()) 199 { 200 if(mrOwner.getClass()) 201 { 202 rtl::OUString aId(rtl::OUString::createFromAscii(".")); 203 aId = aId + *mrOwner.getClass(); 204 pNew = rDocument.findSvgStyleAttributesById(aId); 205 | 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 --- 189 unchanged lines hidden (view full) --- 198 if(rDocument.hasSvgStyleAttributesById()) 199 { 200 if(mrOwner.getClass()) 201 { 202 rtl::OUString aId(rtl::OUString::createFromAscii(".")); 203 aId = aId + *mrOwner.getClass(); 204 pNew = rDocument.findSvgStyleAttributesById(aId); 205 |
| 206 if(!pNew) | 206 if(!pNew && rClassStr.getLength()) |
| 207 { 208 aId = rClassStr + aId; 209 210 pNew = rDocument.findSvgStyleAttributesById(aId); 211 } 212 } 213 else if(mrOwner.getId()) 214 { 215 pNew = rDocument.findSvgStyleAttributesById(*mrOwner.getId()); 216 } | 207 { 208 aId = rClassStr + aId; 209 210 pNew = rDocument.findSvgStyleAttributesById(aId); 211 } 212 } 213 else if(mrOwner.getId()) 214 { 215 pNew = rDocument.findSvgStyleAttributesById(*mrOwner.getId()); 216 } |
| 217 else if(rClassStr.getLength()) 218 { 219 pNew = rDocument.findSvgStyleAttributesById(rClassStr); 220 } |
|
| 217 218 if(pNew) 219 { 220 // found css style, set as parent 221 const_cast< SvgStyleAttributes* >(this)->mpCssStyleParent = pNew; 222 } 223 } 224 } --- 2213 unchanged lines hidden --- | 221 222 if(pNew) 223 { 224 // found css style, set as parent 225 const_cast< SvgStyleAttributes* >(this)->mpCssStyleParent = pNew; 226 } 227 } 228 } --- 2213 unchanged lines hidden --- |