summaryrefslogtreecommitdiff
path: root/configmgr
diff options
context:
space:
mode:
authorJörg Barfurth <jb@openoffice.org>2001-11-05 09:39:58 +0000
committerJörg Barfurth <jb@openoffice.org>2001-11-05 09:39:58 +0000
commit80006750a4d6e71c79332921e256dbed89ef71ae (patch)
tree86a4b7fb2535f7af918c4151d170222e3154c437 /configmgr
parentbf27b20cd1e72e0ef0a53c5abacdfe9ac437325b (diff)
#86807# Reduce to locale now copies the tree ID (if any)
Diffstat (limited to 'configmgr')
-rw-r--r--configmgr/source/tree/localizedtreeactions.cxx11
1 files changed, 9 insertions, 2 deletions
diff --git a/configmgr/source/tree/localizedtreeactions.cxx b/configmgr/source/tree/localizedtreeactions.cxx
index 1a63edaba5ad..a6542f2d216f 100644
--- a/configmgr/source/tree/localizedtreeactions.cxx
+++ b/configmgr/source/tree/localizedtreeactions.cxx
@@ -2,9 +2,9 @@
*
* $RCSfile: localizedtreeactions.cxx,v $
*
- * $Revision: 1.6 $
+ * $Revision: 1.7 $
*
- * last change: $Author: jb $ $Date: 2001-07-11 14:06:01 $
+ * last change: $Author: jb $ $Date: 2001-11-05 10:39:58 $
*
* The Contents of this file are made available subject to the terms of
* either of the following licenses
@@ -334,9 +334,16 @@ std::auto_ptr<INode> reduceExpandedForLocale(std::auto_ptr<ISubtree> _pNode, OUS
else // needs reduction
{
+ OUString const aTreeId = _pNode->getId();
+
OCloneForLocale aCloner(_sLocale);
aCloner.applyToNode(*_pNode);
aResult = aCloner.getResult();
+
+ OSL_ENSURE(aResult.get(),"Cloning a tree for a locale unexpectedly produced NOTHING");
+ if (aResult.get())
+ if (ISubtree* pResultTree = aResult->asISubtree())
+ OIdPropagator::propagateIdToTree(aTreeId, *pResultTree);
}
return aResult;
}