diff options
author | Arnaud Versini <arnaud.versini@libreoffice.org> | 2021-04-05 12:33:11 +0200 |
---|---|---|
committer | Xisco Fauli <xiscofauli@libreoffice.org> | 2021-04-06 21:16:43 +0200 |
commit | 6494b99f09a29c22d51fb898423ced36ce02a9e7 (patch) | |
tree | 2f4310f96edabd276cf3d5bb9724d5e472ba28b0 /svx | |
parent | e2fa68f26318da6c7027b71b7f7f79a0c55b7fde (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>
(cherry picked from commit 7289b9a90f5f8349875856c552330d512004925e)
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/113642
Reviewed-by: Xisco Fauli <xiscofauli@libreoffice.org>
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 f175f9c33181..6bf317f29c02 100644 --- a/svx/source/svdraw/svdograf.cxx +++ b/svx/source/svdraw/svdograf.cxx @@ -498,6 +498,10 @@ void SdrGrafObj::ReleaseGraphicLink() ImpDeregisterLink(); aFileName.clear(); aFilterName.clear(); + + auto aGraphic = mpGraphicObject->GetGraphic(); + aGraphic.setOriginURL(""); + SetGraphic(aGraphic); } bool SdrGrafObj::IsLinkedGraphic() const |