try to find default symbol again

git-svn-id: svn://svn.code.sf.net/p/magicseteditor/code/trunk@1123 0fc631ac-6414-0410-93d0-97cfa31319b6
This commit is contained in:
twanvl
2008-08-09 18:17:02 +00:00
parent cb72dbea2f
commit a10ca59cef
+1 -1
View File
@@ -256,7 +256,7 @@ next_symbol:;
SymbolInFont* SymbolFont::defaultSymbol() const {
FOR_EACH_CONST(sym, symbols) {
if (sym->code.empty() && sym->enabled) return sym.get();
if (sym->regex && sym->code_regex.Matches(_("0")) && sym->enabled) return sym.get();
}
return nullptr;
}