mirror of
https://github.com/xiaoyifang/goldendict-ng.git
synced 2024-11-27 19:24:08 +00:00
Make sure empty headwords don't end reading BGL files early.
This commit is contained in:
parent
3e08acbeac
commit
b63a032218
|
@ -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;
|
||||
|
|
|
@ -193,7 +193,7 @@ public:
|
|||
|
||||
enum
|
||||
{
|
||||
ParserVersion = 8
|
||||
ParserVersion = 9
|
||||
};
|
||||
|
||||
private:
|
||||
|
|
Loading…
Reference in a new issue