summaryrefslogtreecommitdiff
path: root/sc/source/ui/unoobj/tokenuno.cxx
diff options
context:
space:
mode:
authorEike Rathke <erack@redhat.com>2016-03-17 23:18:06 +0100
committerEike Rathke <erack@redhat.com>2016-03-18 10:37:40 +0100
commit64e542413851236c75e25185c137d6fd6ddfe3a1 (patch)
tree63917c801d463b4544aad77a70e688612169d136 /sc/source/ui/unoobj/tokenuno.cxx
parentf4c59e5364e449bd8ce5420ff57331677ff859b9 (diff)
Resolves: tdf#96915 implement other-sheet-local named expressions
Change-Id: I0d62536caa6eb455473a755067abc585662cd9a5
Diffstat (limited to 'sc/source/ui/unoobj/tokenuno.cxx')
-rw-r--r--sc/source/ui/unoobj/tokenuno.cxx3
1 files changed, 2 insertions, 1 deletions
diff --git a/sc/source/ui/unoobj/tokenuno.cxx b/sc/source/ui/unoobj/tokenuno.cxx
index 6e769d03bd61..edea996935c6 100644
--- a/sc/source/ui/unoobj/tokenuno.cxx
+++ b/sc/source/ui/unoobj/tokenuno.cxx
@@ -424,7 +424,8 @@ bool ScTokenConversion::ConvertToTokenSequence( const ScDocument& rDoc,
{
sheet::NameToken aNameToken;
aNameToken.Index = static_cast<sal_Int32>( rToken.GetIndex() );
- aNameToken.Global = rToken.IsGlobal();
+ /* FIXME: we need a new token with sheet number */
+ aNameToken.Global = (rToken.GetSheet() < 0);
rAPI.Data <<= aNameToken;
}
break;