Make sure empty headwords don't end reading BGL files early.

This commit is contained in:
Konstantin Isakov 2010-04-22 22:24:21 +04:00
parent 3e08acbeac
commit b63a032218
2 changed files with 6 additions and 1 deletions

View file

@ -551,6 +551,11 @@ bgl_entry Babylon::readEntry( ResourceHandler * resourceHandler )
if( block.length ) free( block.data );
// Some dictionaries can in fact have an empty headword, so we
// make it non-empty here to differentiate between the end of entries.
if ( entry.headword.empty() )
entry.headword += ' ';
return entry;
break;

View file

@ -193,7 +193,7 @@ public:
enum
{
ParserVersion = 8
ParserVersion = 9
};
private: