[Libreoffice-commits] core.git: sc/source

Eike Rathke (via logerrit) logerrit at kemper.freedesktop.org
Tue Oct 27 00:48:38 UTC 2020


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

New commits:
commit 352840a49be8626448f7823a6bae207e65171e52
Author:     Eike Rathke <erack at redhat.com>
AuthorDate: Mon Oct 26 22:02:26 2020 +0100
Commit:     Eike Rathke <erack at redhat.com>
CommitDate: Tue Oct 27 01:47:59 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

diff --git a/sc/source/ui/docshell/docfunc.cxx b/sc/source/ui/docshell/docfunc.cxx
index 617937cf2231..d98e2773b97d 100644
--- a/sc/source/ui/docshell/docfunc.cxx
+++ b/sc/source/ui/docshell/docfunc.cxx
@@ -5222,7 +5222,8 @@ void ScDocFunc::CreateOneName( ScRangeName& rList,
     if (aName.isEmpty())
         return;
 
-    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