diff options
author | Markus Mohrhard <markus.mohrhard@collabora.co.uk> | 2014-12-30 06:16:45 +0100 |
---|---|---|
committer | Markus Mohrhard <markus.mohrhard@googlemail.com> | 2014-12-30 06:35:54 +0100 |
commit | 81fd0162d69f2753e669093b9bb0cd6e7693743b (patch) | |
tree | 6b019e725cff634893c8bd364f442b481109bfdd | |
parent | 4fca914f7413dc65d8cb8b1c5206df0ace6ab773 (diff) |
use the correct tab for sheet local names, fdo#81195
Change-Id: I7e8b7ed552a37c6d9c6ce7c75765267b343d508c
-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 654cc14f12f7..9017103d11aa 100644 --- a/sc/source/filter/excel/xeformula.cxx +++ b/sc/source/filter/excel/xeformula.cxx @@ -2095,8 +2095,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()); |