| commit | 8f90d3bf33fde7759046a13282381bbd710357f1 | [log] |
|---|---|---|
| author | Noel Grandin <noel.grandin@collabora.co.uk> | Thu Feb 27 10:11:39 2020 +0200 |
| committer | Noel Grandin <noel.grandin@collabora.co.uk> | Thu Feb 27 10:17:29 2020 +0100 |
| tree | 34fad6460bad8a35114ea281e1e5a3a4158ad065 | |
| parent | 675295d7e18c1505835893e51a853a5b4ce37ed6 [diff] |
tdf#130959 crash when opening file with non-existing hyperlinks regression from commit 0ef5c47547bec6319b853326603f3b807407fe78 sc: rowcol: tdf#50916 convert core/tool Change-Id: I8cb8fa4c6abf7450386a284a26be0a6d3ab9a623 Reviewed-on: https://gerrit.libreoffice.org/c/core/+/89617 Tested-by: Jenkins Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
diff --git a/sc/source/filter/oox/worksheetbuffer.cxx b/sc/source/filter/oox/worksheetbuffer.cxx index b165d5b..8a20e25 100644 --- a/sc/source/filter/oox/worksheetbuffer.cxx +++ b/sc/source/filter/oox/worksheetbuffer.cxx
@@ -124,7 +124,7 @@ void WorksheetBuffer::convertSheetNameRef( OUString& sSheetNameRef ) const if (nSepPos < sSheetNameRef.getLength() - 1) { ScRange aRange; if ((aRange.ParseAny( sSheetNameRef.copy( nSepPos + 1 ), nullptr, if ((aRange.ParseAny( sSheetNameRef.copy( nSepPos + 1 ), &getScDocument(), formula::FormulaGrammar::CONV_XL_R1C1) & ScRefFlags::VALID) == ScRefFlags::ZERO) sSheetNameRef = sSheetNameRef.replaceAt( nSepPos, 1, OUString( '.' ) ); }