Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/mono/mono.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAdam Treat <adam@mono-cvs.ximian.com>2002-09-20 08:36:16 +0400
committerAdam Treat <adam@mono-cvs.ximian.com>2002-09-20 08:36:16 +0400
commitae4a470206eac9e1a750b00af1650fdf272cfe77 (patch)
tree832fb6caadf88862b76f7954a47960640fb1b0f9 /mcs/class/System.XML/System.Xml
parentec02f3a0bcc44c3d32dfbdf92b59a74ed6bc5d19 (diff)
* Another fix to the Depth property to handle a more complex heirarchy.
svn path=/trunk/mcs/; revision=7636
Diffstat (limited to 'mcs/class/System.XML/System.Xml')
-rw-r--r--mcs/class/System.XML/System.Xml/XmlTextReader.cs4
1 files changed, 3 insertions, 1 deletions
diff --git a/mcs/class/System.XML/System.Xml/XmlTextReader.cs b/mcs/class/System.XML/System.Xml/XmlTextReader.cs
index 7fe550e53e5..efb48699ad4 100644
--- a/mcs/class/System.XML/System.Xml/XmlTextReader.cs
+++ b/mcs/class/System.XML/System.Xml/XmlTextReader.cs
@@ -855,7 +855,9 @@ namespace System.Xml
Expect ('>');
if (!depthDown)
- ++depth;
+ ++depth;
+ else
+ depthDown = false;
SetProperties (
XmlNodeType.Element, // nodeType