summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorCaolán McNamara <caolanm@redhat.com>2019-07-17 09:06:39 +0100
committerCaolán McNamara <caolanm@redhat.com>2019-07-17 12:58:01 +0200
commit59fa93d128a5363f3e7d6f75e71457261ea6f1d7 (patch)
treef4625bd0af0c54b7434c844cfaf286932c02ac4a
parentbebc2280e43fc381e9085f2a397dad9dd7701fdd (diff)
crashtesting: assert on export of fdo63407-3.ods to xls
since... commit 3cdc1b35b9d86bcfa1277e3e94925ae7b18b8fde Date: Tue Jul 2 10:07:24 2019 +0200 tdf#126177 XLSX export: fix hyperlinks to documents Change-Id: Id5aaaab760a53b1e996d5d47c7477d77ce1d4efc Reviewed-on: https://gerrit.libreoffice.org/75757 Tested-by: Jenkins Reviewed-by: Caolán McNamara <caolanm@redhat.com> Tested-by: Caolán McNamara <caolanm@redhat.com>
-rw-r--r--sc/source/filter/excel/xecontent.cxx2
1 files changed, 1 insertions, 1 deletions
diff --git a/sc/source/filter/excel/xecontent.cxx b/sc/source/filter/excel/xecontent.cxx
index 3237ff1fca75..6cdd0ad7ad27 100644
--- a/sc/source/filter/excel/xecontent.cxx
+++ b/sc/source/filter/excel/xecontent.cxx
@@ -447,7 +447,7 @@ XclExpHyperlink::XclExpHyperlink( const XclExpRoot& rRoot, const SvxURLField& rU
mnFlags |= EXC_HLINK_MARK;
OUString location = XclXmlUtils::ToOUString(*mxTextMark);
- if (msTarget.endsWith(location))
+ if (!location.isEmpty() && msTarget.endsWith("#" + location))
msTarget = msTarget.copy(0, msTarget.getLength() - location.getLength() - 1);
}