Skip to content

Commit

Permalink
Fix emphasis insertion from transNoteBuffer.
Browse files Browse the repository at this point in the history
  • Loading branch information
MikeGray-APH committed Nov 22, 2016
1 parent bc244da commit b00bd07
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions liblouis/lou_translateString.c
Expand Up @@ -3549,7 +3549,7 @@ insertEmphasesAt(const int at)
EMPHASIS_END << (min * 4), EMPHASIS_WORD << (min * 4));
else
insertEmphasisEnd(
transNoteBuffer, at, emph6Rule + min,
transNoteBuffer, at, emph1Rule + min,
TRANSNOTE_END << (min * 4), TRANSNOTE_WORD << (min * 4));
}

Expand All @@ -3575,7 +3575,7 @@ insertEmphasesAt(const int at)
type_counts[max] = 0;
if (max >= 5)
insertEmphasisBegin(
transNoteBuffer, at, emph6Rule + max,
transNoteBuffer, at, emph1Rule + max,
TRANSNOTE_BEGIN << (max * 4), TRANSNOTE_END << (max * 4), TRANSNOTE_WORD << (max * 4));
else
insertEmphasisBegin(
Expand Down

0 comments on commit b00bd07

Please sign in to comment.