You are viewing a plain text version of this content. The canonical link for it is here.
Posted to java-dev@axis.apache.org by na...@apache.org on 2006/03/06 09:22:09 UTC
svn commit: r383494 - /webservices/axis2/trunk/c/modules/xml/om/om_node.c
Author: nandika
Date: Mon Mar 6 00:22:07 2006
New Revision: 383494
URL: http://svn.apache.org/viewcvs?rev=383494&view=rev
Log:
axis2_om_node_detach method modified
Modified:
webservices/axis2/trunk/c/modules/xml/om/om_node.c
Modified: webservices/axis2/trunk/c/modules/xml/om/om_node.c
URL: http://svn.apache.org/viewcvs/webservices/axis2/trunk/c/modules/xml/om/om_node.c?rev=383494&r1=383493&r2=383494&view=diff
==============================================================================
--- webservices/axis2/trunk/c/modules/xml/om/om_node.c (original)
+++ webservices/axis2/trunk/c/modules/xml/om/om_node.c Mon Mar 6 00:22:07 2006
@@ -366,7 +366,6 @@
{
axis2_om_node_t *parent = NULL;
-
AXIS2_ENV_CHECK(env, NULL);
parent = AXIS2_INTF_TO_IMPL(om_node)->parent;
@@ -396,6 +395,13 @@
if(next_sibling)
AXIS2_INTF_TO_IMPL(next_sibling)->prev_sibling =
AXIS2_INTF_TO_IMPL(om_node)->prev_sibling;
+ }
+
+ if(NULL != (AXIS2_INTF_TO_IMPL(parent)->last_child) &&
+ ((AXIS2_INTF_TO_IMPL(parent)->last_child) == om_node))
+ {
+ AXIS2_INTF_TO_IMPL(parent)->last_child =
+ AXIS2_INTF_TO_IMPL(om_node)->prev_sibling;
}
AXIS2_INTF_TO_IMPL(om_node)->parent = NULL;