fix crash when importing unsupported macro content, related fdo#59374

Change-Id: I960c8174454074fd9ddb27fb17244d782c4cb24c
This commit is contained in:
Markus Mohrhard
2014-02-11 00:32:32 +01:00
committed by Markus Mohrhard
parent 3ec8d33e46
commit 70b3006002

View File

@@ -365,6 +365,12 @@ SbiToken SbiTokenizer::Next()
{
return eCurTok = FIXSTRING;
}
else if( aSym.isEmpty() )
{
//something went wrong
bEof = bEos = true;
return eCurTok = EOLN;
}
// Special cases of characters that are between "Z" and "a". ICompare()
// evaluates the position of these characters in different ways.
else if( aSym[0] == '^' )