Kaydet (Commit) 38f3b3fd authored tarafından Michael Stahl's avatar Michael Stahl

sw: SwDoc::RenameNumRule() relies on caller checking that ...

... the new name is not being used.

Change-Id: Idd392fa4ab6379ec21c5b308767c052bf28fa5aa
üst d9dacecd
...@@ -1066,6 +1066,8 @@ void SwDoc::ChgNumRuleFormats( const SwNumRule& rRule ) ...@@ -1066,6 +1066,8 @@ void SwDoc::ChgNumRuleFormats( const SwNumRule& rRule )
bool SwDoc::RenameNumRule(const OUString & rOldName, const OUString & rNewName, bool SwDoc::RenameNumRule(const OUString & rOldName, const OUString & rNewName,
bool bBroadcast) bool bBroadcast)
{ {
assert(!FindNumRulePtr(rNewName));
bool bResult = false; bool bResult = false;
SwNumRule * pNumRule = FindNumRulePtr(rOldName); SwNumRule * pNumRule = FindNumRulePtr(rOldName);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment