[Libreoffice-commits] .: Branch 'libreoffice-3-4' - oox/source
Muthu Subramanian
sumuthu at kemper.freedesktop.org
Tue Jul 19 05:52:25 PDT 2011
oox/source/xls/sheetdatacontext.cxx | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
New commits:
commit 9f9d9a617eff807e3dde8c1ed537d0a1a6a21134
Author: Muthu Subramanian <sumuthu at novell.com>
Date: Tue Jul 19 18:42:35 2011 +0530
Adding additional check for mnFormulaType.
diff --git a/oox/source/xls/sheetdatacontext.cxx b/oox/source/xls/sheetdatacontext.cxx
index 4c5424d..ef949b5 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 );
More information about the Libreoffice-commits
mailing list