mirror of
https://github.com/amyinspace/MagicSetEditor2.git
synced 2026-06-12 13:37:00 -04:00
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:
@@ -256,7 +256,7 @@ next_symbol:;
|
|||||||
|
|
||||||
SymbolInFont* SymbolFont::defaultSymbol() const {
|
SymbolInFont* SymbolFont::defaultSymbol() const {
|
||||||
FOR_EACH_CONST(sym, symbols) {
|
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;
|
return nullptr;
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user