summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMuthu Subramanian <sumuthu@novell.com>2011-07-19 18:42:35 +0530
committerMuthu Subramanian <sumuthu@novell.com>2011-07-19 18:42:35 +0530
commit9f9d9a617eff807e3dde8c1ed537d0a1a6a21134 (patch)
tree5bf02f47064d97f997155f53762e135fd009b403
parentc2a27c3725b7445e6234f09cd7bbde4cd0c32a09 (diff)
Adding additional check for mnFormulaType.
-rw-r--r--oox/source/xls/sheetdatacontext.cxx2
1 files changed, 1 insertions, 1 deletions
diff --git a/oox/source/xls/sheetdatacontext.cxx b/oox/source/xls/sheetdatacontext.cxx
index 4c5424db9..ef949b570 100644
--- a/oox/source/xls/sheetdatacontext.cxx
+++ b/oox/source/xls/sheetdatacontext.cxx
@@ -276,7 +276,7 @@ void SheetDataContext::onEndElement()
maCurrCell.mnCellType = XML_TOKEN_INVALID;
}
}
- if( maCurrCell.mnSharedId >= 0 )
+ if( maCurrCell.mnFormulaType == XML_shared && maCurrCell.mnSharedId >= 0 )
{
Reference< XFormulaTokens > xTokens( maCurrCell.mxCell, UNO_QUERY_THROW );
ExtCellFormulaContext aContext( *this, xTokens, maCurrCell.maAddress );