diff options
author | Kohei Yoshida <kyoshida@novell.com> | 2010-10-05 18:14:37 -0400 |
---|---|---|
committer | Kohei Yoshida <kyoshida@novell.com> | 2010-10-05 18:14:37 -0400 |
commit | 296baa2fb6dd4150a7855114093a9703cdc18b09 (patch) | |
tree | 0fe76d11e2123e4bae6f4940653f6ffa54fefd06 /sc/source/filter/excel/xeformula.cxx | |
parent | 221204d480d925eb497704f71177fead09c9ebf4 (diff) |
Ported calc-extref-interpreter-rework-*.diff from ooo-build.
Re-structured the interpreter code to handle external references with
ocPush, instead of ocExternalRef. This is necessary in order to
support shifting of references in the same way you can with internal
references.
In addition, this change allows re-using of document instances already
loaded when accessing external references that point to one of already
loaded documents. Previously, Calc would load the same document from
disk even when the document was already loaded.
(n#628876)
Diffstat (limited to 'sc/source/filter/excel/xeformula.cxx')
-rw-r--r-- | sc/source/filter/excel/xeformula.cxx | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/sc/source/filter/excel/xeformula.cxx b/sc/source/filter/excel/xeformula.cxx index 34e48671a3bc..2b5d534c6d1e 100644 --- a/sc/source/filter/excel/xeformula.cxx +++ b/sc/source/filter/excel/xeformula.cxx @@ -2104,7 +2104,7 @@ void XclExpFmlaCompImpl::ProcessExternalName( const XclExpScToken& rTokData ) { for( FormulaToken* pScToken = xArray->First(); pScToken; pScToken = xArray->Next() ) { - if( pScToken->GetOpCode() == ocExternalRef ) + if( pScToken->IsExternalRef() ) { switch( pScToken->GetType() ) { |