diff options
author | Jim Raykowski <raykowj@gmail..com> | 2020-04-15 21:24:44 -0800 |
---|---|---|
committer | Noel Grandin <noel.grandin@collabora.co.uk> | 2020-04-16 10:09:38 +0200 |
commit | 00d4852eef26037f7ddf6778542a131e94c752b2 (patch) | |
tree | 78b469074f35bc692b0ee62a3a252aa4e949f044 /sw/source/core | |
parent | 86280100cb4d558e2c1a4f67aa6e3ce7fdfb87b1 (diff) |
tdf#122444 Use fontwork name for object name
Change-Id: Icdbde958f2e89e669a9399479e0059095a6d8a3a
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/92333
Tested-by: Jenkins
Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
Diffstat (limited to 'sw/source/core')
-rw-r--r-- | sw/source/core/frmedt/fefly1.cxx | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/sw/source/core/frmedt/fefly1.cxx b/sw/source/core/frmedt/fefly1.cxx index 856ad958b58c..8cec500dc329 100644 --- a/sw/source/core/frmedt/fefly1.cxx +++ b/sw/source/core/frmedt/fefly1.cxx @@ -953,8 +953,6 @@ void SwFEShell::InsertDrawObj( SdrObject& rDrawObj, } // insert drawing object into the document creating a new <SwDrawFrameFormat> instance SwDrawFrameFormat* pFormat = GetDoc()->getIDocumentContentOperations().InsertDrawObj( aPam, rDrawObj, rFlyAttrSet ); - OUString sShapeName = GetDoc()->GetUniqueShapeName(); - rDrawObj.SetName(sShapeName); // move object to visible layer SwContact* pContact = static_cast<SwContact*>(rDrawObj.GetUserCall()); @@ -965,7 +963,7 @@ void SwFEShell::InsertDrawObj( SdrObject& rDrawObj, if (pFormat) { - pFormat->SetName(sShapeName); + pFormat->SetName(rDrawObj.GetName()); // select drawing object Imp()->GetDrawView()->MarkObj( &rDrawObj, Imp()->GetPageView() ); } |