Fix missing meta when reading is empty (#1486)
This commit is contained in:
parent
ca4d5a2ac1
commit
2203202861
@ -646,7 +646,8 @@ class Translator {
|
||||
|
||||
for (const {expressions, frequencies: frequencies1, pitches: pitches1} of allDefinitions) {
|
||||
for (let i = 0, ii = expressions.length; i < ii; ++i) {
|
||||
const {expression, reading, frequencies: frequencies2, pitches: pitches2} = expressions[i];
|
||||
let {expression, reading, frequencies: frequencies2, pitches: pitches2} = expressions[i];
|
||||
if (reading.length === 0) { reading = expression; }
|
||||
let readingMap = expressionMap.get(expression);
|
||||
if (typeof readingMap === 'undefined') {
|
||||
readingMap = new Map();
|
||||
|
Loading…
Reference in New Issue
Block a user