]> git.lyx.org Git - features.git/commitdiff
Add ':' to number separators chars
authorDekel Tsur <dekelts@tau.ac.il>
Sat, 13 Jan 2001 19:49:05 +0000 (19:49 +0000)
committerDekel Tsur <dekelts@tau.ac.il>
Sat, 13 Jan 2001 19:49:05 +0000 (19:49 +0000)
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@1327 a592a061-630c-0410-9148-cb99ea01b6c8

ChangeLog
src/text.C

index c0108b9ed6852f0d9a502ce2f3b39849dab49ce5..2191140b5cb84f2c0356099f7da44d89b62d8cb0 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -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
index e0c054484d3cd4888e8935dc90285b3d4891aa73..0f806c6cf4ba7b93b266cd2a9ca6c6c9bcb9f37f 100644 (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(),