diff options
author | Caolán McNamara <caolan.mcnamara@collabora.com> | 2024-01-23 17:41:11 +0000 |
---|---|---|
committer | Miklos Vajna <vmiklos@collabora.com> | 2024-02-07 12:25:46 +0100 |
commit | 7fb34ef1845b7d793b168db805ebbb64969c74b7 (patch) | |
tree | 340067366571a140e9a6d6fdcd59659d186f69fe | |
parent | 49c49d2b1687172216a37dfdbb8f7ed1583e6d75 (diff) |
complete filename isn't meaningful in this mode
Change-Id: Icc5bdac688ca6b328dcf097c9638b4e6df211332
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/162456
Tested-by: Jenkins CollaboraOffice <jenkinscollaboraoffice@gmail.com>
Reviewed-by: Miklos Vajna <vmiklos@collabora.com>
-rw-r--r-- | sc/source/core/tool/interpr1.cxx | 11 |
1 files changed, 7 insertions, 4 deletions
diff --git a/sc/source/core/tool/interpr1.cxx b/sc/source/core/tool/interpr1.cxx index 27917500254a..9a2ad349ddba 100644 --- a/sc/source/core/tool/interpr1.cxx +++ b/sc/source/core/tool/interpr1.cxx @@ -63,7 +63,7 @@ #include <queryentry.hxx> #include <tokenarray.hxx> #include <compare.hxx> - +#include <comphelper/lok.hxx> #include <comphelper/processfactory.hxx> #include <comphelper/random.hxx> #include <comphelper/string.hxx> @@ -2326,9 +2326,12 @@ void ScInterpreter::ScCell() const INetURLObject& rURLObj = pShell->GetMedium()->GetURLObject(); OUString aTabName; mrDoc.GetName( nTab, aTabName ); - aFuncResult = "'" - + rURLObj.GetMainURL(INetURLObject::DecodeMechanism::Unambiguous) - + "'#$" + aTabName; + aFuncResult = "'"; + if (!comphelper::LibreOfficeKit::isActive()) + aFuncResult += rURLObj.GetMainURL(INetURLObject::DecodeMechanism::Unambiguous); + else + aFuncResult += rURLObj.GetLastName(INetURLObject::DecodeMechanism::Unambiguous); + aFuncResult += "'#$" + aTabName; } } } |