dbertoni 2003/05/13 18:07:11
Modified: c/src/XPath MutableNodeRefList.cpp
Log:
Protect against setting an iterator before begin().
Revision Changes Path
1.29 +8 -1 xml-xalan/c/src/XPath/MutableNodeRefList.cpp
Index: MutableNodeRefList.cpp
===================================================================
RCS file: /home/cvs/xml-xalan/c/src/XPath/MutableNodeRefList.cpp,v
retrieving revision 1.28
retrieving revision 1.29
diff -u -r1.28 -r1.29
--- MutableNodeRefList.cpp 12 Feb 2003 23:08:04 -0000 1.28
+++ MutableNodeRefList.cpp 14 May 2003 01:07:10 -0000 1.29
@@ -420,7 +420,14 @@
if (theIndex < theCurrentIndex)
{
- last = current - 1;
+ if (current == begin)
+ {
+ break;
+ }
+ else
+ {
+ last = current - 1;
+ }
}
else if (theIndex > theCurrentIndex)
{
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]