Add ':' to number separators chars

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@1327 a592a061-630c-0410-9148-cb99ea01b6c8
This commit is contained in:
Dekel Tsur 2001-01-13 19:49:05 +00:00
parent cff6e1e0cd
commit 5d75a3a116
2 changed files with 6 additions and 2 deletions

View File

@ -1,3 +1,7 @@
2001-01-13 Dekel Tsur <dekelts@tau.ac.il>
* src/text.C (InsertChar): Add ':' to number separator chars.
2001-01-12 Lars Gullik Bjønnes <larsbj@lyx.org>
* ChangeLog: store old and begin new

View File

@ -1913,7 +1913,7 @@ void LyXText::InsertChar(BufferView * bview, char c)
if (lyxrc.auto_number) {
if (current_font.number() == LyXFont::ON) {
if (!isdigit(c) && !strchr("+-/*", c) &&
!(strchr(".,",c) &&
!(strchr(".,:",c) &&
cursor.pos() >= 1 &&
cursor.pos() < cursor.par()->size() &&
GetFont(bview->buffer(),
@ -1939,7 +1939,7 @@ void LyXText::InsertChar(BufferView * bview, char c)
cursor.par(),
cursor.pos() - 1,
current_font);
} else if (strchr(".,", c) &&
} else if (strchr(".,:", c) &&
cursor.pos() >= 2 &&
GetFont(bview->buffer(),
cursor.par(),