This commit is contained in:
Kathy Ruffing 2011-09-28 12:51:17 +00:00
parent b97c213b60
commit 44ad35500a

View File

@ -56,7 +56,12 @@ namespace VEPROMS.CSLA.Library
if (xmlNode == null) return null; if (xmlNode == null) return null;
XmlNode xn = xmlNode.SelectSingleNode(path); XmlNode xn = xmlNode.SelectSingleNode(path);
if (xmlNode.Name == "Box") return xn; // if box, don't do inheritance. 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 (xmlNode.Name == "DocStyle") return xn;
if (xmlNode.Name == "StructureStyle")
{
Volian.Base.Library.DebugText.WriteLine("vlnFormatDocument:LookupSingleNode:StructureStyle - shouldn't get to this line of code.");
return xn; // User Format (sub format) - shouldn't? inherit? -need to check
}
if (xn != null) return xn; 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 (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 if (xmlNode.Name == "Step") xn = LookupSingleStepNode(xmlNode, path); // Check for Step Inheritance