You are viewing a plain text version of this content. The canonical link for it is here.
Posted to axis-cvs@ws.apache.org by sh...@apache.org on 2010/02/02 13:51:14 UTC
svn commit: r905613 - /webservices/axis2/trunk/c/axiom/src/om/om_node.c
Author: shankar
Date: Tue Feb 2 12:51:14 2010
New Revision: 905613
URL: http://svn.apache.org/viewvc?rev=905613&view=rev
Log:
adding comment
Modified:
webservices/axis2/trunk/c/axiom/src/om/om_node.c
Modified: webservices/axis2/trunk/c/axiom/src/om/om_node.c
URL: http://svn.apache.org/viewvc/webservices/axis2/trunk/c/axiom/src/om/om_node.c?rev=905613&r1=905612&r2=905613&view=diff
==============================================================================
--- webservices/axis2/trunk/c/axiom/src/om/om_node.c (original)
+++ webservices/axis2/trunk/c/axiom/src/om/om_node.c Tue Feb 2 12:51:14 2010
@@ -306,12 +306,12 @@
parent->last_child = om_node->prev_sibling;
}
+ /* if the STAX builder's last node is what we are detaching, then we should adjust the
+ * last node if previous sibling is available, set that as the builder's last node. Else set the
+ * parent as the last node*/
if(om_node->builder && (axiom_stax_builder_get_lastnode(om_node->builder, env) == om_node))
{
axiom_node_t *lastnode = parent;
-
- /* if previous sibling is available, set that as the builder's last node. Else set the
- * parent as the last node */
if(om_node->prev_sibling)
{
lastnode = om_node->prev_sibling;