diff options
-rw-r--r-- | sc/source/filter/oox/worksheethelper.cxx | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/sc/source/filter/oox/worksheethelper.cxx b/sc/source/filter/oox/worksheethelper.cxx index b897fc13afc8..a567435fcc28 100644 --- a/sc/source/filter/oox/worksheethelper.cxx +++ b/sc/source/filter/oox/worksheethelper.cxx @@ -995,7 +995,8 @@ OUString WorksheetGlobals::getHyperlinkUrl( const HyperlinkModel& rHyperlink ) c if (nSepPos < aUrl.getLength() - 1) { ScRange aRange; - if ((aRange.ParseAny( aUrl.copy( nSepPos + 1 ), nullptr, + const ScDocumentImport& rDoc = getDocImport(); + if ((aRange.ParseAny( aUrl.copy( nSepPos + 1 ), &rDoc.getDoc(), formula::FormulaGrammar::CONV_XL_R1C1) & ScRefFlags::VALID) == ScRefFlags::ZERO) aUrl = aUrl.replaceAt( nSepPos, 1, OUString( '.' ) ); |