summaryrefslogtreecommitdiff
path: root/sc/source/filter/xml
diff options
context:
space:
mode:
authorMarkus Mohrhard <markus.mohrhard@googlemail.com>2011-12-03 23:42:42 +0100
committerMarkus Mohrhard <markus.mohrhard@googlemail.com>2011-12-05 01:44:04 +0100
commit82a548061fcef9eff61c3a23570607db286715b5 (patch)
treedccfb3cca374b0f117e7d9275d04eefac0cff9d1 /sc/source/filter/xml
parent71de946a1a2f5479667abd0e8cd0446b1db3ee96 (diff)
missing check for cell import
Diffstat (limited to 'sc/source/filter/xml')
-rw-r--r--sc/source/filter/xml/xmlcelli.cxx2
1 files changed, 1 insertions, 1 deletions
diff --git a/sc/source/filter/xml/xmlcelli.cxx b/sc/source/filter/xml/xmlcelli.cxx
index 8fd3de4ef5c6..3f837a93b5ea 100644
--- a/sc/source/filter/xml/xmlcelli.cxx
+++ b/sc/source/filter/xml/xmlcelli.cxx
@@ -1106,7 +1106,7 @@ void ScXMLTableRowCellContext::EndElement()
pNewCell = new ScFormulaCell( pDoc, aScAddress, pCode, eGrammar, MM_NONE );
delete pCode;
}
- else if ( aText[0] == '\'' )
+ else if ( aText[0] == '\'' && aText.getLength() > 1 )
{
// for bEnglish, "'" at the beginning is always interpreted as text
// marker and stripped