diff options
author | Caolán McNamara <caolanm@redhat.com> | 2016-01-19 14:03:12 +0000 |
---|---|---|
committer | Caolán McNamara <caolanm@redhat.com> | 2016-01-19 15:33:29 +0000 |
commit | 86963c2e23aebfa7b9df4e2d28278dfb581974d3 (patch) | |
tree | 3c0ff5828cfbc2af7ed189e764875f66c4bf9927 /xmloff | |
parent | 442a022cf7baefbd5519ea55c7978cf839e1f44d (diff) |
Resolves: tdf#96245 relax test for duplicate frame names
to allow duplicated unnamed frames
Change-Id: I871849b23d01209f027b6295777db705f7dc86d8
Diffstat (limited to 'xmloff')
-rw-r--r-- | xmloff/source/text/XMLTextFrameContext.cxx | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/xmloff/source/text/XMLTextFrameContext.cxx b/xmloff/source/text/XMLTextFrameContext.cxx index 81b3b185d1e6..e032bdd770f6 100644 --- a/xmloff/source/text/XMLTextFrameContext.cxx +++ b/xmloff/source/text/XMLTextFrameContext.cxx @@ -587,7 +587,8 @@ void XMLTextFrameContext_Impl::Create( bool /*bHRefOrBase64*/ ) { bool bSuccess = xTextImportHelper->GetRenameMap().Add( XML_TEXT_RENAME_TYPE_FRAME, sOldName, sName ); - if (!bSuccess) + + if (!bSuccess && !sOldName.isEmpty()) { bCreateFailed = true; return; |