summaryrefslogtreecommitdiff
path: root/svx
diff options
context:
space:
mode:
authorCaolán McNamara <caolanm@redhat.com>2020-05-11 17:17:26 +0100
committerCaolán McNamara <caolanm@redhat.com>2020-05-12 16:10:37 +0200
commit19edcfe36b32b15f86cba1eead7932b610e70ce7 (patch)
treea72c731e7cfbb5ada628f1fa6f945c163ca82c8c /svx
parenta8d25394a02def4bf1b8d1ad022ea9da25d92935 (diff)
always use the LinkManager's persist as the known referer
Change-Id: Ibb1bd9138993adbd8391b524c0cd654ba523cad2 Reviewed-on: https://gerrit.libreoffice.org/c/core/+/94006 Tested-by: Jenkins Reviewed-by: Caolán McNamara <caolanm@redhat.com>
Diffstat (limited to 'svx')
-rw-r--r--svx/source/svdraw/svdograf.cxx9
1 files changed, 1 insertions, 8 deletions
diff --git a/svx/source/svdraw/svdograf.cxx b/svx/source/svdraw/svdograf.cxx
index b0a13593845c..3f836d4123cd 100644
--- a/svx/source/svdraw/svdograf.cxx
+++ b/svx/source/svdraw/svdograf.cxx
@@ -19,9 +19,7 @@
#include <unotools/streamwrap.hxx>
-#include <sfx2/docfile.hxx>
#include <sfx2/lnkbase.hxx>
-#include <sfx2/objsh.hxx>
#include <rtl/ustrbuf.hxx>
#include <tools/helpers.hxx>
#include <tools/stream.hxx>
@@ -92,13 +90,8 @@ SdrGraphicLink::SdrGraphicLink(SdrGrafObj& rObj)
{
sfx2::LinkManager::GetDisplayNames( this, nullptr, &rGrafObj.aFileName, nullptr, &rGrafObj.aFilterName );
- OUString sReferer(rGrafObj.aReferer);
- SfxObjectShell * sh = pLinkManager->GetPersist();
- if (sh != nullptr && sh->HasName())
- sReferer = sh->GetMedium()->GetName();
-
Graphic aGraphic;
- if (sfx2::LinkManager::GetGraphicFromAny(rMimeType, rValue, sReferer, aGraphic, nullptr))
+ if (pLinkManager->GetGraphicFromAny(rMimeType, rValue, aGraphic, nullptr))
{
rGrafObj.ImpSetLinkedGraphic(aGraphic);
}