diff options
author | Eike Rathke <erack@redhat.com> | 2020-10-26 22:02:26 +0100 |
---|---|---|
committer | Eike Rathke <erack@redhat.com> | 2020-10-27 01:47:59 +0100 |
commit | 352840a49be8626448f7823a6bae207e65171e52 (patch) | |
tree | 65f635afcf937b517eef24d7fef13db5b52e8df0 /sc | |
parent | f27c4ec5c864395f4cdaec32d7e95ff24e4f43c8 (diff) |
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@redhat.com>
Tested-by: Jenkins
Diffstat (limited to 'sc')
-rw-r--r-- | sc/source/ui/docshell/docfunc.cxx | 3 |
1 files changed, 2 insertions, 1 deletions
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)); |