summaryrefslogtreecommitdiff
path: root/sw
diff options
context:
space:
mode:
authorVasily Melenchuk <vasily.melenchuk@cib.de>2020-01-20 11:55:02 +0300
committerThorsten Behrens <Thorsten.Behrens@CIB.de>2020-02-03 14:44:43 +0100
commit6e2ed4ea934851f82611c3352b9551046fda89d0 (patch)
tree67c634821c44ae4eb8fe5ad42a70305d42b8e23a /sw
parent446af1fd2b76dfe32a3f947b683a4e36122cea37 (diff)
sw: set unique name for fontwork object and style on insertion
Unique name for fontwork is required to be displayed in Navigator pane, unique style name is important for correct undo/redo work. Change-Id: If633d0fda9bb98558a311dd1dd9324f9d6d04616 Reviewed-on: https://gerrit.libreoffice.org/c/core/+/87056 Tested-by: Jenkins Reviewed-by: Thorsten Behrens <Thorsten.Behrens@CIB.de>
Diffstat (limited to 'sw')
-rw-r--r--sw/source/core/frmedt/fefly1.cxx2
1 files changed, 2 insertions, 0 deletions
diff --git a/sw/source/core/frmedt/fefly1.cxx b/sw/source/core/frmedt/fefly1.cxx
index 8137013ab109..da9be791b33b 100644
--- a/sw/source/core/frmedt/fefly1.cxx
+++ b/sw/source/core/frmedt/fefly1.cxx
@@ -935,6 +935,8 @@ void SwFEShell::InsertDrawObj( SdrObject& rDrawObj,
}
// insert drawing object into the document creating a new <SwDrawFrameFormat> instance
SwDrawFrameFormat* pFormat = GetDoc()->getIDocumentContentOperations().InsertDrawObj( aPam, rDrawObj, rFlyAttrSet );
+ pFormat->SetName(GetDoc()->GetUniqueShapeName());
+ rDrawObj.SetName(pFormat->GetName());
// move object to visible layer
SwContact* pContact = static_cast<SwContact*>(rDrawObj.GetUserCall());