aboutsummaryrefslogtreecommitdiff
path: root/src/xmlnode.cpp
diff options
context:
space:
mode:
authorMike Buland <eichlan@xagasoft.com>2006-10-11 15:24:42 +0000
committerMike Buland <eichlan@xagasoft.com>2006-10-11 15:24:42 +0000
commitdf6f199b4e158d1d6cfb99d45258efa22afee715 (patch)
tree05b623c1711826d94ff0c8633ca789b1bae4146d /src/xmlnode.cpp
parent67c0930cbe7d0646cf4e4dee157ea553ee8a045a (diff)
downloadlibbu++-df6f199b4e158d1d6cfb99d45258efa22afee715.tar.gz
libbu++-df6f199b4e158d1d6cfb99d45258efa22afee715.tar.bz2
libbu++-df6f199b4e158d1d6cfb99d45258efa22afee715.tar.xz
libbu++-df6f199b4e158d1d6cfb99d45258efa22afee715.zip
Fixed a wierd bug that caused each element of any part of a copied node tree to
be partially cross-linked to the node that was the root of the copy. Also fixed a bug in the xmlfilewriter that should make it both faster, and not mess up % style replacements.
Diffstat (limited to 'src/xmlnode.cpp')
-rw-r--r--src/xmlnode.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/xmlnode.cpp b/src/xmlnode.cpp
index e5c77e2..8468047 100644
--- a/src/xmlnode.cpp
+++ b/src/xmlnode.cpp
@@ -368,8 +368,8 @@ XmlNode *XmlNode::getCopy()
368 { 368 {
369 XmlNode *pChild = ((XmlNode *)lChildren[j])->getCopy(); 369 XmlNode *pChild = ((XmlNode *)lChildren[j])->getCopy();
370 pNew->lChildren.setAt( j, pChild ); 370 pNew->lChildren.setAt( j, pChild );
371 pChild->pParent = this; 371 pChild->pParent = pNew;
372 hChildren.insert( pChild->getName(), pChild ); 372 pNew->hChildren.insert( pChild->getName(), pChild );
373 } 373 }
374 374
375 nSize = lPropNames.getSize(); 375 nSize = lPropNames.getSize();