[Libreoffice-commits] .: Branch 'libreoffice-3-4' - oox/source
Kohei Yoshida
kohei at kemper.freedesktop.org
Mon Jul 11 21:43:37 PDT 2011
oox/source/xls/formulaparser.cxx | 6 +++++-
1 file changed, 5 insertions(+), 1 deletion(-)
New commits:
commit f388b40e50a751c104e3e6a965f57b9aa806c5dc
Author: Markus Mohrhard <markus.mohrhard at googlemail.com>
Date: Tue Jul 12 01:51:46 2011 +0200
fix for fdo#39023: shared formulas are not imported correctly
Signed-off-by: Kohei Yoshida <kyoshida at novell.com>
diff --git a/oox/source/xls/formulaparser.cxx b/oox/source/xls/formulaparser.cxx
index 2d919a6..429bc13 100644
--- a/oox/source/xls/formulaparser.cxx
+++ b/oox/source/xls/formulaparser.cxx
@@ -32,6 +32,7 @@
#include <com/sun/star/sheet/ComplexReference.hpp>
#include <com/sun/star/sheet/ExternalReference.hpp>
#include <com/sun/star/sheet/FormulaToken.hpp>
+#include <com/sun/star/sheet/NameToken.hpp>
#include <com/sun/star/sheet/ReferenceFlags.hpp>
#include <com/sun/star/sheet/SingleReference.hpp>
#include "oox/core/filterbase.hxx"
@@ -2798,7 +2799,10 @@ void FormulaParser::convertNameToFormula( FormulaContext& rContext, sal_Int32 nT
{
ApiTokenSequence aTokens( 1 );
aTokens[ 0 ].OpCode = OPCODE_NAME;
- aTokens[ 0 ].Data <<= nTokenIndex;
+ NameToken aNameTokenData;
+ aNameTokenData.Global = sal_True;
+ aNameTokenData.Index= nTokenIndex;
+ aTokens[ 0 ].Data <<= aNameTokenData;
mxImpl->setFormula( rContext, aTokens );
}
else
More information about the Libreoffice-commits
mailing list