From 44ad35500a064a657048ea23fc25b56254aacdcf Mon Sep 17 00:00:00 2001 From: Kathy Date: Wed, 28 Sep 2011 12:51:17 +0000 Subject: [PATCH] --- PROMS/VEPROMS.CSLA.Library/Format/vlnFormat.cs | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/PROMS/VEPROMS.CSLA.Library/Format/vlnFormat.cs b/PROMS/VEPROMS.CSLA.Library/Format/vlnFormat.cs index ddc3afad..c7a3a5d8 100644 --- a/PROMS/VEPROMS.CSLA.Library/Format/vlnFormat.cs +++ b/PROMS/VEPROMS.CSLA.Library/Format/vlnFormat.cs @@ -56,7 +56,12 @@ 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 (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 (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