Rename badly named variable

This commit is contained in:
Jean-Marc Lasgouttes 2016-04-05 14:27:30 +02:00 committed by Richard Heck
parent 019fceda3f
commit f78967a802

View File

@ -907,11 +907,11 @@ void Text::insertChar(Cursor & cur, char_type c)
if (lyxrc.auto_number) { if (lyxrc.auto_number) {
static docstring const number_operators = from_ascii("+-/*"); static docstring const number_operators = from_ascii("+-/*");
static docstring const number_unary_operators = from_ascii("+-"); static docstring const number_unary_operators = from_ascii("+-");
static docstring const number_seperators = from_ascii(".,:"); static docstring const number_separators = from_ascii(".,:");
if (cur.current_font.fontInfo().number() == FONT_ON) { if (cur.current_font.fontInfo().number() == FONT_ON) {
if (!isDigitASCII(c) && !contains(number_operators, c) && if (!isDigitASCII(c) && !contains(number_operators, c) &&
!(contains(number_seperators, c) && !(contains(number_separators, c) &&
cur.pos() != 0 && cur.pos() != 0 &&
cur.pos() != cur.lastpos() && cur.pos() != cur.lastpos() &&
tm.displayFont(pit, cur.pos()).fontInfo().number() == FONT_ON && tm.displayFont(pit, cur.pos()).fontInfo().number() == FONT_ON &&
@ -932,7 +932,7 @@ void Text::insertChar(Cursor & cur, char_type c)
) { ) {
setCharFont(pit, cur.pos() - 1, cur.current_font, setCharFont(pit, cur.pos() - 1, cur.current_font,
tm.font_); tm.font_);
} else if (contains(number_seperators, c) } else if (contains(number_separators, c)
&& cur.pos() >= 2 && cur.pos() >= 2
&& tm.displayFont(pit, cur.pos() - 2).fontInfo().number() == FONT_ON) { && tm.displayFont(pit, cur.pos() - 2).fontInfo().number() == FONT_ON) {
setCharFont(pit, cur.pos() - 1, cur.current_font, setCharFont(pit, cur.pos() - 1, cur.current_font,