summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTomaž Vajngerl <tomaz.vajngerl@collabora.co.uk>2019-02-03 21:16:40 +0100
committerMiklos Vajna <vmiklos@collabora.com>2019-02-05 10:35:13 +0100
commit380fd85348084e3b35531bc6b50f6e2629b49bcc (patch)
tree7360a6ac937e8278a359de94e29f3b2dd94b8dc9
parentaf9cf4782bd4cb7f0bd791937a3334a09eb9a1e5 (diff)
tdf#119661 remove the original URL when removing a graphic link
Change-Id: I8c875202ba8af9cbcd7eb9ce0db78f97d56a07a8 Reviewed-on: https://gerrit.libreoffice.org/67337 Tested-by: Jenkins Reviewed-by: Tomaž Vajngerl <quikee@gmail.com> (cherry picked from commit 6a36bedd0a418ce12543f797ab46f24ee57feb6c) Reviewed-on: https://gerrit.libreoffice.org/67348 Reviewed-by: Miklos Vajna <vmiklos@collabora.com>
-rw-r--r--sw/source/core/graphic/ndgrf.cxx3
1 files changed, 2 insertions, 1 deletions
diff --git a/sw/source/core/graphic/ndgrf.cxx b/sw/source/core/graphic/ndgrf.cxx
index e439cef7fb11..867e533533e3 100644
--- a/sw/source/core/graphic/ndgrf.cxx
+++ b/sw/source/core/graphic/ndgrf.cxx
@@ -593,7 +593,7 @@ void SwGrfNode::ReleaseLink()
{
if( refLink.is() )
{
- const Graphic aLocalGraphic(maGrfObj.GetGraphic());
+ Graphic aLocalGraphic(maGrfObj.GetGraphic());
const bool bHasOriginalData(aLocalGraphic.IsGfxLink());
{
@@ -605,6 +605,7 @@ void SwGrfNode::ReleaseLink()
getIDocumentLinksAdministration().GetLinkManager().Remove( refLink.get() );
refLink.clear();
+ aLocalGraphic.setOriginURL("");
// #i15508# added extra processing after getting rid of the link. Use whatever is
// known from the formerly linked graphic to get to a state as close to a directly