mirror of
https://github.com/xiaoyifang/goldendict-ng.git
synced 2024-11-27 19:24:08 +00:00
work around to fix too long headword in dsl
This commit is contained in:
parent
417628292d
commit
8f5a552e77
|
@ -1151,6 +1151,11 @@ void processUnsortedParts( wstring & str, bool strip )
|
|||
void expandOptionalParts( wstring & str, list< wstring > * result,
|
||||
size_t x, bool inside_recurse )
|
||||
{
|
||||
// if str is too long ,it can never be headwords.
|
||||
if( str.size() > 100 )
|
||||
{
|
||||
return;
|
||||
}
|
||||
list< wstring > expanded;
|
||||
list< wstring > * headwords;
|
||||
headwords = inside_recurse ? result : &expanded;
|
||||
|
|
Loading…
Reference in a new issue