summaryrefslogtreecommitdiff
path: root/formula/source
diff options
context:
space:
mode:
authorMarkus Mohrhard <markus.mohrhard@googlemail.com>2011-06-22 15:51:02 +0200
committerMarkus Mohrhard <markus.mohrhard@googlemail.com>2011-06-23 15:21:12 +0200
commit9b1dbe77297343cc74cf049c64ec65d316d10e67 (patch)
tree8acd6ee60130a1dd1aecfd16fcdbce021fb84254 /formula/source
parent29387b95a21725ac9a216a18674d0e39917e3481 (diff)
fix for fdo#37880
we need to save the information if we have a global range name or a local range name in the uno api too
Diffstat (limited to 'formula/source')
-rw-r--r--formula/source/core/api/token.cxx3
1 files changed, 2 insertions, 1 deletions
diff --git a/formula/source/core/api/token.cxx b/formula/source/core/api/token.cxx
index de9258d4c8ea..703c5d6bb6b2 100644
--- a/formula/source/core/api/token.cxx
+++ b/formula/source/core/api/token.cxx
@@ -303,7 +303,7 @@ bool FormulaTokenArray::AddFormulaToken(const sheet::FormulaToken& _aToken,Exter
{
// long is svIndex, used for name / database area, or "byte" for spaces
sal_Int32 nValue = _aToken.Data.get<sal_Int32>();
- if ( eOpCode == ocName || eOpCode == ocDBArea )
+ if ( eOpCode == ocDBArea )
AddToken( formula::FormulaIndexToken( eOpCode, static_cast<sal_uInt16>(nValue) ) );
else if ( eOpCode == ocSpaces )
AddToken( formula::FormulaByteToken( ocSpaces, static_cast<sal_uInt8>(nValue) ) );
@@ -1347,6 +1347,7 @@ bool FormulaStringOpToken::operator==( const FormulaToken& r ) const
}
sal_uInt16 FormulaIndexToken::GetIndex() const { return nIndex; }
+sal_uInt8 FormulaIndexToken::GetByte() const {return static_cast<sal_uInt8>(mbGlobal); }
void FormulaIndexToken::SetIndex( sal_uInt16 n ) { nIndex = n; }
bool FormulaIndexToken::operator==( const FormulaToken& r ) const
{