From: Dekel Tsur Date: Sat, 13 Jan 2001 19:49:05 +0000 (+0000) Subject: Add ':' to number separators chars X-Git-Tag: 1.6.10~21730 X-Git-Url: https://git.lyx.org/gitweb/?a=commitdiff_plain;h=5d75a3a1163f1372964b6a4cf60ccc91d6147aac;p=features.git Add ':' to number separators chars git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@1327 a592a061-630c-0410-9148-cb99ea01b6c8 --- 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(),