summaryrefslogtreecommitdiff
path: root/configmgr
diff options
context:
space:
mode:
authorsb <sb@openoffice.org>2010-08-26 13:26:56 +0200
committersb <sb@openoffice.org>2010-08-26 13:26:56 +0200
commitf6b87d8f5b9ad9cc5a49e35ff0c567a3b8083bc3 (patch)
tree2d565f10f0d3c1ccf0b0b4320fad35507902977c /configmgr
parent46cc97b7825b74b9d6f718cb4e7645ce1278a05a (diff)
sb130: #i113096# previous change contained an error in configmgr::Components::removeExtensionXcuFile
Diffstat (limited to 'configmgr')
-rw-r--r--configmgr/source/components.cxx2
1 files changed, 2 insertions, 0 deletions
diff --git a/configmgr/source/components.cxx b/configmgr/source/components.cxx
index 733ca05bc1..e76460de5b 100644
--- a/configmgr/source/components.cxx
+++ b/configmgr/source/components.cxx
@@ -290,6 +290,7 @@ void Components::removeExtensionXcuFile(
// item->additions records all additions of set members in textual order,
// the latter check works well when iterating through item->additions in
// reverse order.
+ OSL_ASSERT(modifications != 0);
rtl::Reference< Data::ExtensionXcu > item(
data_.removeExtensionXcuAdditions(fileUri));
if (item.is()) {
@@ -315,6 +316,7 @@ void Components::removeExtensionXcuFile(
node->kind() == Node::KIND_SET);
if (hasOnlyEmptySets(node)) {
parent->getMembers().erase(i->back());
+ addModification(*i);
modifications->add(*i);
}
}