summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorNoel Power <noel.power@suse.com>2013-06-24 11:47:55 +0100
committerNoel Power <noel.power@suse.com>2013-06-24 13:02:56 +0100
commit8e33e95500c2f5edc91e853024a5c0fff285fcce (patch)
tree2b4c9e07817357c28c67cb55dfabed874746f425
parentb8b4f455ef20929a0c5838772d120ed86f10e259 (diff)
fix for bnc#823935
Change-Id: Id62e1f4845bfbc610f73499881dc33d3d955923b
-rw-r--r--sc/source/filter/excel/xecontent.cxx6
1 files changed, 6 insertions, 0 deletions
diff --git a/sc/source/filter/excel/xecontent.cxx b/sc/source/filter/excel/xecontent.cxx
index 36cd3835feac..ce22d557d9fe 100644
--- a/sc/source/filter/excel/xecontent.cxx
+++ b/sc/source/filter/excel/xecontent.cxx
@@ -395,6 +395,12 @@ XclExpHyperlink::XclExpHyperlink( const XclExpRoot& rRoot, const SvxURLField& rU
mxRepr.reset( new String( aFileName ) );
msTarget = XclXmlUtils::ToOUString( aLink );
+ if( eProtocol == INET_PROT_SMB )
+ {
+ // ooxml expects the file:/// part appended ( or at least
+ // ms2007 does, ms2010 is more tolerant )
+ msTarget = "file:///" + msTarget;
+ }
}
else if( eProtocol != INET_PROT_NOT_VALID )
{