Author: alg
Date: Thu Oct 9 15:03:55 2014
New Revision: 1630497
URL: http://svn.apache.org/r1630497
Log:
i125329 Take care of Css selector '*'
Modified:
openoffice/trunk/main/svgio/source/svgreader/svgnode.cxx
Modified: openoffice/trunk/main/svgio/source/svgreader/svgnode.cxx
URL:
http://svn.apache.org/viewvc/openoffice/trunk/main/svgio/source/svgreader/svgnode.cxx?rev=1630497&r1=1630496&r2=1630497&view=diff
==============================================================================
--- openoffice/trunk/main/svgio/source/svgreader/svgnode.cxx (original)
+++ openoffice/trunk/main/svgio/source/svgreader/svgnode.cxx Thu Oct 9
15:03:55 2014
@@ -201,6 +201,15 @@ namespace svgio
// check the hierarchy for concatenated patterns of Selectors
fillCssStyleVectorUsingHierarchyAndSelectors(rClassStr, *this,
rtl::OUString());
+
+ // #125329# find Css selector '*', add as last element if found
+ const SvgStyleAttributes* pNew =
getDocument().findGlobalCssStyleAttributes(rtl::OUString::createFromAscii("*"));
+
+ if(pNew)
+ {
+ // add CssStyle for selector '*' if found
+ maCssStyleVector.push_back(pNew);
+ }
}
const SvgStyleAttributes* SvgNode::checkForCssStyle(const
rtl::OUString& rClassStr, const SvgStyleAttributes& rOriginal) const