From a390df308eab5976cc1a30eaf4c405397c75eca2 Mon Sep 17 00:00:00 2001 From: Markus Mohrhard Date: Tue, 30 Dec 2014 06:16:45 +0100 Subject: use the correct tab for sheet local names, fdo#81195 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Change-Id: I7e8b7ed552a37c6d9c6ce7c75765267b343d508c Reviewed-on: https://gerrit.libreoffice.org/13696 Reviewed-by: Caolán McNamara Tested-by: Caolán McNamara --- sc/source/filter/excel/xeformula.cxx | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'sc/source/filter/excel') diff --git a/sc/source/filter/excel/xeformula.cxx b/sc/source/filter/excel/xeformula.cxx index 214d979e991e..145aaf368448 100644 --- a/sc/source/filter/excel/xeformula.cxx +++ b/sc/source/filter/excel/xeformula.cxx @@ -2078,8 +2078,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()); -- cgit