[Libreoffice-commits] core.git: Branch 'libreoffice-7-0' - sc/source

Eike Rathke (via logerrit) logerrit at kemper.freedesktop.org
Thu Oct 29 10:55:28 UTC 2020


 sc/source/ui/docshell/docfunc.cxx |    3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

New commits:
commit 3ffaf415f4f76962b29b889cf1c8281664ae512f
Author:     Eike Rathke <erack at redhat.com>
AuthorDate: Mon Oct 26 22:02:26 2020 +0100
Commit:     Xisco Fauli <xiscofauli at libreoffice.org>
CommitDate: Thu Oct 29 11:54:55 2020 +0100

    Resolves: tdf#137617 Use document address convention to create names
    
    ... from selection.
    
    Change-Id: I0b170f36cfdb592e7cebae0246fba12c0180e2c2
    Reviewed-on: https://gerrit.libreoffice.org/c/core/+/104854
    Reviewed-by: Eike Rathke <erack at redhat.com>
    Tested-by: Jenkins
    Signed-off-by: Xisco Fauli <xiscofauli at libreoffice.org>
    Reviewed-on: https://gerrit.libreoffice.org/c/core/+/104867

diff --git a/sc/source/ui/docshell/docfunc.cxx b/sc/source/ui/docshell/docfunc.cxx
index c66ddeb06a9e..3d840ad3c2ab 100644
--- a/sc/source/ui/docshell/docfunc.cxx
+++ b/sc/source/ui/docshell/docfunc.cxx
@@ -5190,7 +5190,8 @@ void ScDocFunc::CreateOneName( ScRangeName& rList,
         ScRangeData::MakeValidName(&rDoc, aName);
         if (!aName.isEmpty())
         {
-            OUString aContent(ScRange( nX1, nY1, nTab, nX2, nY2, nTab ).Format(rDoc, ScRefFlags::RANGE_ABS_3D));
+            OUString aContent( ScRange( nX1, nY1, nTab, nX2, nY2, nTab ).Format(
+            rDoc, ScRefFlags::RANGE_ABS_3D, ScAddress::Details( rDoc.GetAddressConvention(), nPosY, nPosX)));
 
             bool bInsert = false;
             ScRangeData* pOld = rList.findByUpperName(ScGlobal::getCharClassPtr()->uppercase(aName));


More information about the Libreoffice-commits mailing list