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

New commits:
commit 3ffaf415f4f76962b29b889cf1c8281664ae512f
Author:     Eike Rathke <er...@redhat.com>
AuthorDate: Mon Oct 26 22:02:26 2020 +0100
Commit:     Xisco Fauli <xiscofa...@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 <er...@redhat.com>
    Tested-by: Jenkins
    Signed-off-by: Xisco Fauli <xiscofa...@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));
_______________________________________________
Libreoffice-commits mailing list
libreoffice-comm...@lists.freedesktop.org
https://lists.freedesktop.org/mailman/listinfo/libreoffice-commits

Reply via email to