Commit bcb9a857 authored by twanvl's avatar twanvl

try to find default symbol again

parent 06f23162
...@@ -256,7 +256,7 @@ next_symbol:; ...@@ -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;
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment