https://bugs.documentfoundation.org/show_bug.cgi?id=64431

Julien Nabet <serval2...@yahoo.fr> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |er...@redhat.com

--- Comment #13 from Julien Nabet <serval2...@yahoo.fr> ---
On pc Debian x86-64 with master sources updated today, I could reproduce this.

First, since the hyperlink from the ppt seemed to succeed before reopening and
failed after reopening, I thought it was import pb
(sd/source/filter/ppt/pptin.cxx:410 (aPropItem.Read( aHyperlink.aTarget ))
but in fact it's in export part. I must recognize I don't know why it succeeds
before the reloading.

Anyway, with this patch, it works:
diff --git a/sd/source/filter/eppt/epptso.cxx
b/sd/source/filter/eppt/epptso.cxx
index eae0e5d8c4ab..c2232bbf3ba3 100644
--- a/sd/source/filter/eppt/epptso.cxx
+++ b/sd/source/filter/eppt/epptso.cxx
@@ -342,14 +342,6 @@ sal_uInt32 PPTWriter::ImplInsertBookmarkURL( const
OUString& rBookmarkURL, const
     sal_uInt32 nHyperId = ++mnExEmbed;

     OUString sBookmarkURL( rBookmarkURL );
-    INetURLObject aBaseURI( maBaseURI );
-    INetURLObject aBookmarkURI( rBookmarkURL );
-    if( aBaseURI.GetProtocol() == aBookmarkURI.GetProtocol() )
-    {
-        OUString aRelUrl( INetURLObject::GetRelURL( maBaseURI, rBookmarkURL )
);
-        if ( !aRelUrl.isEmpty() )
-            sBookmarkURL = aRelUrl;
-    }
     maHyperlink.emplace_back( sBookmarkURL, nType );

     mpExEmbed->WriteUInt16( 0xf )

Eike: I noticed this commit:
6ad3c553a9bd3b8fb91c45204f0c833f52c52431
impress212: #i97241# added relative links
* found as LGPLv3-only fix at svn rev 1167624
(http://svn.apache.org/viewvc?view=revision&revision=1167624)

from 2011 (!!).

I'm afraid to break something here but do you know which use case it would
break?

-- 
You are receiving this mail because:
You are the assignee for the bug.

Reply via email to