[Libreoffice-commits] .: sc/inc sc/source
Markus Mohrhard
mmohrhard at kemper.freedesktop.org
Tue Jul 19 11:18:58 PDT 2011
sc/inc/token.hxx | 2 +-
sc/source/core/tool/token.cxx | 6 +++---
2 files changed, 4 insertions(+), 4 deletions(-)
New commits:
commit 0290076c7043ab3b9dfde2fd6219334f5a0e987d
Author: Markus Mohrhard <markus.mohrhard at googlemail.com>
Date: Tue Jul 19 13:09:20 2011 +0200
fix for fdo#39333: database ranges don't work in formulas
diff --git a/sc/inc/token.hxx b/sc/inc/token.hxx
index 78364e9..ce16c17 100644
--- a/sc/inc/token.hxx
+++ b/sc/inc/token.hxx
@@ -244,7 +244,7 @@ private:
private:
ScNameToken(); // disabled
public:
- ScNameToken(sal_uInt16 nIndex, bool bGlobal);
+ ScNameToken(sal_uInt16 nIndex, bool bGlobal, OpCode eOpCode = ocName);
ScNameToken(const ScNameToken& r);
virtual ~ScNameToken();
virtual sal_uInt8 GetByte() const;
diff --git a/sc/source/core/tool/token.cxx b/sc/source/core/tool/token.cxx
index 9e8c821..29d30a5 100644
--- a/sc/source/core/tool/token.cxx
+++ b/sc/source/core/tool/token.cxx
@@ -379,7 +379,7 @@ FormulaToken* ScRawToken::CreateToken() const
IF_NOT_OPCODE_ERROR( ocPush, ScMatrixToken);
return new ScMatrixToken( pMat );
case svIndex :
- return new ScNameToken(name.nIndex, name.bGlobal);
+ return new ScNameToken(name.nIndex, name.bGlobal, eOp);
case svExternalSingleRef:
{
String aTabName(extref.cTabName);
@@ -948,8 +948,8 @@ bool ScExternalDoubleRefToken::operator ==( const FormulaToken& r ) const
// ============================================================================
-ScNameToken::ScNameToken(sal_uInt16 nIndex, bool bGlobal) :
- ScToken(svIndex, ocName), mnIndex(nIndex), mbGlobal(bGlobal) {}
+ScNameToken::ScNameToken(sal_uInt16 nIndex, bool bGlobal, OpCode eOpCode) :
+ ScToken(svIndex, eOpCode), mnIndex(nIndex), mbGlobal(bGlobal) {}
ScNameToken::ScNameToken(const ScNameToken& r) :
ScToken(r), mnIndex(r.mnIndex), mbGlobal(r.mbGlobal) {}
More information about the Libreoffice-commits
mailing list