mirror of
https://git.lyx.org/repos/lyx.git
synced 2024-11-21 17:51:03 +00:00
Rename badly named variable
This commit is contained in:
parent
019fceda3f
commit
f78967a802
@ -907,11 +907,11 @@ void Text::insertChar(Cursor & cur, char_type c)
|
||||
if (lyxrc.auto_number) {
|
||||
static docstring const number_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 (!isDigitASCII(c) && !contains(number_operators, c) &&
|
||||
!(contains(number_seperators, c) &&
|
||||
!(contains(number_separators, c) &&
|
||||
cur.pos() != 0 &&
|
||||
cur.pos() != cur.lastpos() &&
|
||||
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,
|
||||
tm.font_);
|
||||
} else if (contains(number_seperators, c)
|
||||
} else if (contains(number_separators, c)
|
||||
&& cur.pos() >= 2
|
||||
&& tm.displayFont(pit, cur.pos() - 2).fontInfo().number() == FONT_ON) {
|
||||
setCharFont(pit, cur.pos() - 1, cur.current_font,
|
||||
|
Loading…
Reference in New Issue
Block a user