diff --git a/ChangeLog b/ChangeLog index c0108b9ed6..2191140b5c 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,7 @@ +2001-01-13 Dekel Tsur + + * src/text.C (InsertChar): Add ':' to number separator chars. + 2001-01-12 Lars Gullik Bjønnes * ChangeLog: store old and begin new diff --git a/src/text.C b/src/text.C index e0c054484d..0f806c6cf4 100644 --- a/src/text.C +++ b/src/text.C @@ -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(),