Kaydet (Commit) 6a36bedd authored tarafından Tomaž Vajngerl's avatar Tomaž Vajngerl Kaydeden (comit) Tomaž Vajngerl

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: 's avatarTomaž Vajngerl <quikee@gmail.com>
üst ce1276a4
...@@ -593,7 +593,7 @@ void SwGrfNode::ReleaseLink() ...@@ -593,7 +593,7 @@ void SwGrfNode::ReleaseLink()
{ {
if( refLink.is() ) if( refLink.is() )
{ {
const Graphic aLocalGraphic(maGrfObj.GetGraphic()); Graphic aLocalGraphic(maGrfObj.GetGraphic());
const bool bHasOriginalData(aLocalGraphic.IsGfxLink()); const bool bHasOriginalData(aLocalGraphic.IsGfxLink());
{ {
...@@ -605,6 +605,7 @@ void SwGrfNode::ReleaseLink() ...@@ -605,6 +605,7 @@ void SwGrfNode::ReleaseLink()
getIDocumentLinksAdministration().GetLinkManager().Remove( refLink.get() ); getIDocumentLinksAdministration().GetLinkManager().Remove( refLink.get() );
refLink.clear(); refLink.clear();
aLocalGraphic.setOriginURL("");
// #i15508# added extra processing after getting rid of the link. Use whatever is // #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 // known from the formerly linked graphic to get to a state as close to a directly
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment