diff options
author | Markus Mohrhard <markus.mohrhard@collabora.co.uk> | 2014-12-30 06:16:45 +0100 |
---|---|---|
committer | Caolán McNamara <caolanm@redhat.com> | 2015-01-04 20:48:04 +0000 |
commit | 1d45667276f671f6b73dd03550978458f27cc52d (patch) | |
tree | 0c3f67ac9c41da1198fc3b8955897bd944967e49 | |
parent | 52f0fea241b254f3ff9e683465e90c5842d878cf (diff) |
use the correct tab for sheet local names, fdo#81195
Change-Id: I7e8b7ed552a37c6d9c6ce7c75765267b343d508c
Reviewed-on: https://gerrit.libreoffice.org/13697
Reviewed-by: Caolán McNamara <caolanm@redhat.com>
Tested-by: Caolán McNamara <caolanm@redhat.com>
-rw-r--r-- | sc/source/filter/excel/xeformula.cxx | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/sc/source/filter/excel/xeformula.cxx b/sc/source/filter/excel/xeformula.cxx index 0231faf207fb..288b8cb2f705 100644 --- a/sc/source/filter/excel/xeformula.cxx +++ b/sc/source/filter/excel/xeformula.cxx @@ -2080,8 +2080,8 @@ void XclExpFmlaCompImpl::ProcessDefinedName( const XclExpScToken& rTokData ) { SCTAB nTab = SCTAB_GLOBAL; bool bGlobal = rTokData.mpScToken->IsGlobal(); - if (!bGlobal && mxData->mpScBasePos) - nTab = mxData->mpScBasePos->Tab(); + if (!bGlobal) + nTab = GetCurrScTab(); XclExpNameManager& rNameMgr = GetNameManager(); sal_uInt16 nNameIdx = rNameMgr.InsertName(nTab, rTokData.mpScToken->GetIndex()); |