sc/source/filter/excel/xecontent.cxx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
New commits: commit 59fa93d128a5363f3e7d6f75e71457261ea6f1d7 Author: Caolán McNamara <caol...@redhat.com> AuthorDate: Wed Jul 17 09:06:39 2019 +0100 Commit: Caolán McNamara <caol...@redhat.com> CommitDate: Wed Jul 17 12:58:01 2019 +0200 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 <caol...@redhat.com> Tested-by: Caolán McNamara <caol...@redhat.com> 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); } _______________________________________________ Libreoffice-commits mailing list libreoffice-comm...@lists.freedesktop.org https://lists.freedesktop.org/mailman/listinfo/libreoffice-commits