sc/source/core/tool/address.cxx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
New commits: commit 0f4756601982da8898c9305d6d03f1dc3fa9264a Author: Eike Rathke <er...@redhat.com> AuthorDate: Tue Oct 26 20:48:00 2021 +0200 Commit: Eike Rathke <er...@redhat.com> CommitDate: Tue Oct 26 21:57:46 2021 +0200 Restore original lcl_ScAddress_Parse_OOo() behaviour detecting external It's quite unclear why exactly this would even be necessary, but commit 296baa2fb6dd4150a7855114093a9703cdc18b09 CommitDate: Tue Oct 5 18:14:37 2010 -0400 Ported calc-extref-interpreter-rework-*.diff from ooo-build. introduced a heuristic whether a reference could be a so far unrecognized external reference and used String.Erase(n) to strip a detected possible filename extension starting from the '.' dot to form a sheet name. commit 6f93499b881416140c57bc86acdac0ae6e01c314 CommitDate: Tue Oct 8 10:03:08 2013 +0200 convert sc/inc/address.hxx from String to OUString then changed the String.Erase(n) to OUString::replaceAt(n, 1, "") which of course does not the same but just removes the '.' dot character. In that commit this was the only replacement doing that, others already used a correct OUString::copy(). Just restore the original intention, whyever.. Change-Id: Icc46115f9f25eaf1ed727c233fb1c69942c4b1af Reviewed-on: https://gerrit.libreoffice.org/c/core/+/124238 Reviewed-by: Eike Rathke <er...@redhat.com> Tested-by: Jenkins diff --git a/sc/source/core/tool/address.cxx b/sc/source/core/tool/address.cxx index 283f45ee8d0a..b43c9bdfe6f0 100644 --- a/sc/source/core/tool/address.cxx +++ b/sc/source/core/tool/address.cxx @@ -1237,7 +1237,7 @@ static ScRefFlags lcl_ScAddress_Parse_OOo( const sal_Unicode* p, const ScDocumen if (n > 0) { // Extension found. Strip it. - aTab = aTab.replaceAt(n, 1, ""); + aTab = aTab.copy(0, n); bExtDoc = true; } else