mirror of
https://github.com/xiaoyifang/goldendict-ng.git
synced 2024-12-17 23:04:06 +00:00
work around to fix too long headword in dsl
This commit is contained in:
parent
59698b53dd
commit
02f6c0e47f
|
@ -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