summaryrefslogtreecommitdiff
path: root/sw/source/core/doc/docnum.cxx
diff options
context:
space:
mode:
authorMichael Stahl <mstahl@redhat.com>2016-03-01 22:03:02 +0100
committerMichael Stahl <mstahl@redhat.com>2016-03-02 15:07:02 +0100
commit38f3b3fd31143495249a67c9526fe2a47dafe861 (patch)
tree2256c7a83b1f30e198f6951f7a340f680ac59c09 /sw/source/core/doc/docnum.cxx
parentd9dacecd9068f8ba2be8b92cdd881dbb17a59cfb (diff)
sw: SwDoc::RenameNumRule() relies on caller checking that ...
... the new name is not being used. Change-Id: Idd392fa4ab6379ec21c5b308767c052bf28fa5aa
Diffstat (limited to 'sw/source/core/doc/docnum.cxx')
-rw-r--r--sw/source/core/doc/docnum.cxx2
1 files changed, 2 insertions, 0 deletions
diff --git a/sw/source/core/doc/docnum.cxx b/sw/source/core/doc/docnum.cxx
index c9a64faf0ec7..2f456e4549eb 100644
--- a/sw/source/core/doc/docnum.cxx
+++ b/sw/source/core/doc/docnum.cxx
@@ -1066,6 +1066,8 @@ void SwDoc::ChgNumRuleFormats( const SwNumRule& rRule )
bool SwDoc::RenameNumRule(const OUString & rOldName, const OUString & rNewName,
bool bBroadcast)
{
+ assert(!FindNumRulePtr(rNewName));
+
bool bResult = false;
SwNumRule * pNumRule = FindNumRulePtr(rOldName);