Fixed: keyword expanding could hang if there is a keyword that matches "";

Fixed: drop down list now stays open after mouse out the second time it is used;
Fixed some typos in comments;
Disabled 'check updates' menu item for 0.3.5 release

git-svn-id: svn://svn.code.sf.net/p/magicseteditor/code/trunk@711 0fc631ac-6414-0410-93d0-97cfa31319b6
This commit is contained in:
twanvl
2007-09-20 14:40:13 +00:00
parent 59fbcec864
commit 77ace5354c
6 changed files with 5 additions and 11 deletions
+1
View File
@@ -479,6 +479,7 @@ String KeywordDatabase::expand(const String& text,
kw->match_re.GetMatch(&start_u, &len_u, 0);
size_t start = untagged_to_index(s, start_u, true),
end = untagged_to_index(s, start_u + len_u, true);
if (start == end) continue; // don't match empty keywords
result += s.substr(0, start);
// Split the keyword, set parameters in context