summaryrefslogtreecommitdiff
path: root/svx
diff options
context:
space:
mode:
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);
}