summaryrefslogtreecommitdiff
path: root/sc/source/ui/unoobj/docuno.cxx
diff options
context:
space:
mode:
authorNoel Grandin <noel.grandin@collabora.co.uk>2019-10-28 13:08:29 +0200
committerNoel Grandin <noel.grandin@collabora.co.uk>2019-10-29 14:22:48 +0100
commit0ef5c47547bec6319b853326603f3b807407fe78 (patch)
treeced33b9ae621fa1cd807f8647a5149eed8bc743b /sc/source/ui/unoobj/docuno.cxx
parent07bde58988705ca45a619eb7a4e670a5d951abf6 (diff)
sc: rowcol: tdf#50916 convert core/tool
Change-Id: I0fe5a7ef4a79d0832802945ce1b9da4752f1d5fc Reviewed-on: https://gerrit.libreoffice.org/81598 Tested-by: Jenkins Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
Diffstat (limited to 'sc/source/ui/unoobj/docuno.cxx')
-rw-r--r--sc/source/ui/unoobj/docuno.cxx4
1 files changed, 2 insertions, 2 deletions
diff --git a/sc/source/ui/unoobj/docuno.cxx b/sc/source/ui/unoobj/docuno.cxx
index b30cbd61ddbc..689b785ab982 100644
--- a/sc/source/ui/unoobj/docuno.cxx
+++ b/sc/source/ui/unoobj/docuno.cxx
@@ -3872,7 +3872,7 @@ ScTableColumnObj* ScTableColumnsObj::GetObjectByIndex_Impl(sal_Int32 nIndex) con
ScTableColumnObj* ScTableColumnsObj::GetObjectByName_Impl(const OUString& aName) const
{
SCCOL nCol = 0;
- if ( ::AlphaToCol( nCol, aName) )
+ if ( ::AlphaToCol( &pDocShell->GetDocument(), nCol, aName) )
if ( pDocShell && nCol >= nStartCol && nCol <= nEndCol )
return new ScTableColumnObj( pDocShell, nCol, nTab );
@@ -3982,7 +3982,7 @@ sal_Bool SAL_CALL ScTableColumnsObj::hasByName( const OUString& aName )
{
SolarMutexGuard aGuard;
SCCOL nCol = 0;
- if ( ::AlphaToCol( nCol, aName) )
+ if ( ::AlphaToCol( &pDocShell->GetDocument(), nCol, aName) )
if ( pDocShell && nCol >= nStartCol && nCol <= nEndCol )
return true;