Fix for sub-format (User Format) to prevent inheritance

This commit is contained in:
John Jenko 2011-09-22 19:54:41 +00:00
parent e9865f3250
commit 63888a983d

View File

@ -56,6 +56,7 @@ namespace VEPROMS.CSLA.Library
if (xmlNode == null) return null;
XmlNode xn = xmlNode.SelectSingleNode(path);
if (xmlNode.Name == "Box") return xn; // if box, don't do inheritance.
if (xmlNode.Name == "StructureStyle") return xn; // User Format (sub format) - shouldn't? inherit? -need to check
if (xn != null) return xn;
//if (path.Contains("Font")) Console.WriteLine("vlnFormatDocument.LookupSingleNode {0},{1}", xmlNode.Name == "Step" ? "Step." + xmlNode.Attributes["Type"].Value : xmlNode.Name, path);
if (xmlNode.Name == "Step") xn = LookupSingleStepNode(xmlNode, path); // Check for Step Inheritance