summaryrefslogtreecommitdiff
path: root/oox/source/drawingml
diff options
context:
space:
mode:
authorNoel Power <noel.power@suse.com>2012-12-13 16:26:58 +0000
committerNoel Power <noel.power@suse.com>2012-12-13 16:54:07 +0000
commit2551fec6d2a73d10cfa2aec85ae7d00e237e0294 (patch)
tree0873c649ccbd5e0e4b05d864301e84de77e8252d /oox/source/drawingml
parentd3a9e97164c0071d8b18f8dcf4197ec7c5c5c2f9 (diff)
fix fdo#58237 import hyperlinks for shapes in xlsx documents
Change-Id: Ib0c661dbb3ce9a2f8c8d29707a1cf0c65aadc81f
Diffstat (limited to 'oox/source/drawingml')
-rw-r--r--oox/source/drawingml/hyperlinkcontext.cxx4
1 files changed, 3 insertions, 1 deletions
diff --git a/oox/source/drawingml/hyperlinkcontext.cxx b/oox/source/drawingml/hyperlinkcontext.cxx
index f2d715cee1e4..231b7f92d25c 100644
--- a/oox/source/drawingml/hyperlinkcontext.cxx
+++ b/oox/source/drawingml/hyperlinkcontext.cxx
@@ -44,10 +44,12 @@ HyperLinkContext::HyperLinkContext( ContextHandler& rParent,
{
OSL_TRACE("OOX: URI rId %s", OUStringToOString (aRelId, RTL_TEXTENCODING_UTF8).pData->buffer);
sHref = getRelations().getExternalTargetFromRelId( aRelId );
+ OUString sExtHref = getRelations().getExternalTargetFromRelId( aRelId );
+ sURL = getRelations().getInternalTargetFromRelId( aRelId );
if( !sHref.isEmpty() )
{
OSL_TRACE("OOX: URI href %s", OUStringToOString (sHref, RTL_TEXTENCODING_UTF8).pData->buffer);
- sURL = getFilter().getAbsoluteUrl( sHref );
+ sURL = getFilter().getAbsoluteUrl( sExtHref );
}
}
OUString sTooltip = xAttributes->getOptionalValue( R_TOKEN( tooltip ) );