diff options
author | Arnaud Versini <arnaud.versini@libreoffice.org> | 2021-04-05 12:33:11 +0200 |
---|---|---|
committer | Tomaž Vajngerl <quikee@gmail.com> | 2021-04-06 15:24:31 +0200 |
commit | 7289b9a90f5f8349875856c552330d512004925e (patch) | |
tree | 7632420d79cad4599099836ef7efaffa2c18ea20 /svx | |
parent | 1421961635a1670ce63f3edacfc410a382668e37 (diff) |
tdf#141297 : remove link to the file
Change-Id: I5c14f46f5fbd51d95eeb58ea0a6d3aa39afef3cf
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/113597
Tested-by: Jenkins
Reviewed-by: Tomaž Vajngerl <quikee@gmail.com>
Diffstat (limited to 'svx')
-rw-r--r-- | svx/source/svdraw/svdograf.cxx | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/svx/source/svdraw/svdograf.cxx b/svx/source/svdraw/svdograf.cxx index f7a03a82278d..bc0e125d46c1 100644 --- a/svx/source/svdraw/svdograf.cxx +++ b/svx/source/svdraw/svdograf.cxx @@ -552,6 +552,10 @@ void SdrGrafObj::ReleaseGraphicLink() ImpDeregisterLink(); aFileName.clear(); aFilterName.clear(); + + auto aGraphic = mpGraphicObject->GetGraphic(); + aGraphic.setOriginURL(""); + SetGraphic(aGraphic); } bool SdrGrafObj::IsLinkedGraphic() const |