diff options
author | Michael Stahl <mstahl@redhat.com> | 2016-03-01 22:03:02 +0100 |
---|---|---|
committer | Michael Stahl <mstahl@redhat.com> | 2016-03-02 15:07:02 +0100 |
commit | 38f3b3fd31143495249a67c9526fe2a47dafe861 (patch) | |
tree | 2256c7a83b1f30e198f6951f7a340f680ac59c09 /sw | |
parent | d9dacecd9068f8ba2be8b92cdd881dbb17a59cfb (diff) |
sw: SwDoc::RenameNumRule() relies on caller checking that ...
... the new name is not being used.
Change-Id: Idd392fa4ab6379ec21c5b308767c052bf28fa5aa
Diffstat (limited to 'sw')
-rw-r--r-- | sw/source/core/doc/docnum.cxx | 2 |
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); |