summaryrefslogtreecommitdiff
path: root/oox/source/drawingml
diff options
context:
space:
mode:
authorNoel Power <noel.power@suse.com>2012-12-13 17:32:00 +0000
committerNoel Power <noel.power@suse.com>2012-12-13 17:34:10 +0000
commit5deba0e70c9287e6e933df458c21cc3e72f3aa70 (patch)
tree26c56cdc00e36f9a83d68bb1e0fcf6066c2c56a0 /oox/source/drawingml
parent64f98aa1f492911c6ce1b76c394bd87abee330a2 (diff)
fix fdo#58237 import hyperlinks for shapes in xlsx documents
Change-Id: I9c64c0f4d1eb8533b65f35d5e85e1ab4881a2b67
Diffstat (limited to 'oox/source/drawingml')
-rw-r--r--oox/source/drawingml/hyperlinkcontext.cxx5
1 files changed, 5 insertions, 0 deletions
diff --git a/oox/source/drawingml/hyperlinkcontext.cxx b/oox/source/drawingml/hyperlinkcontext.cxx
index f2d715cee1e4..6da4db30062f 100644
--- a/oox/source/drawingml/hyperlinkcontext.cxx
+++ b/oox/source/drawingml/hyperlinkcontext.cxx
@@ -49,6 +49,11 @@ HyperLinkContext::HyperLinkContext( ContextHandler& rParent,
OSL_TRACE("OOX: URI href %s", OUStringToOString (sHref, RTL_TEXTENCODING_UTF8).pData->buffer);
sURL = getFilter().getAbsoluteUrl( sHref );
}
+ else
+ {
+ // not sure if we also need to set sHref to the internal target
+ sURL = getRelations().getInternalTargetFromRelId( aRelId );
+ }
}
OUString sTooltip = xAttributes->getOptionalValue( R_TOKEN( tooltip ) );
if ( !sTooltip.isEmpty() )