[Libreoffice-commits] .: Branch 'libreoffice-3-4-2' - oox/source
David Tardon
dtardon at kemper.freedesktop.org
Tue Jul 19 06:04:05 PDT 2011
oox/source/xls/sheetdatacontext.cxx | 9 ++++++---
1 file changed, 6 insertions(+), 3 deletions(-)
New commits:
commit e3af3c46c32291c64a81d4b9564ebe09703876da
Author: Muthu Subramanian <sumuthu at novell.com>
Date: Tue Jul 19 13:24:03 2011 +0200
related fdo#39023: correct import of shared formulas
Signed-off-by: Markus Mohrhard <markus.mohrhard at googlemail.com>
Signed-off-by: Katarina Machalkova <kmachalkova at suse.cz>
Signed-off-by: David Tardon <dtardon at redhat.com>
diff --git a/oox/source/xls/sheetdatacontext.cxx b/oox/source/xls/sheetdatacontext.cxx
index 2f0be89..4c5424d 100644
--- a/oox/source/xls/sheetdatacontext.cxx
+++ b/oox/source/xls/sheetdatacontext.cxx
@@ -227,9 +227,6 @@ void SheetDataContext::onCharacters( const OUString& rChars )
{
if( rChars.getLength() > 0 )
getSharedFormulas().importSharedFmla( rChars, maCurrCell.maFormulaRef, maCurrCell.mnSharedId, maCurrCell.maAddress );
- Reference< XFormulaTokens > xTokens( maCurrCell.mxCell, UNO_QUERY_THROW );
- ExtCellFormulaContext aContext( *this, xTokens, maCurrCell.maAddress );
- getSharedFormulas().setSharedFormulaCell( aContext, maCurrCell.mnSharedId );
}
break;
@@ -279,6 +276,12 @@ void SheetDataContext::onEndElement()
maCurrCell.mnCellType = XML_TOKEN_INVALID;
}
}
+ if( maCurrCell.mnSharedId >= 0 )
+ {
+ Reference< XFormulaTokens > xTokens( maCurrCell.mxCell, UNO_QUERY_THROW );
+ ExtCellFormulaContext aContext( *this, xTokens, maCurrCell.maAddress );
+ getSharedFormulas().setSharedFormulaCell( aContext, maCurrCell.mnSharedId );
+ }
// store the cell formatting data
setCellFormat( maCurrCell );
More information about the Libreoffice-commits
mailing list