This commit is contained in:
Richard Kimberly Heck 2021-02-02 17:23:00 -05:00
parent d999d8e8d9
commit b6c089afa4

View File

@ -895,11 +895,11 @@ void Text::insertStringAsLines(Cursor & cur, docstring const & str,
space_inserted = true;
}
} else if (specialchars.find(ch) != specialchars.end()) {
par.insertInset(pos, new InsetSpecialChar(specialchars.find(ch)->second),
if (par.insertInset(pos, new InsetSpecialChar(specialchars.find(ch)->second),
font, bparams.track_changes ?
Change(Change::INSERTED)
: Change(Change::UNCHANGED));
++pos;
: Change(Change::UNCHANGED)))
++pos;
space_inserted = false;
} else if (!isPrintable(ch)) {
// Ignore (other) unprintables