mirror of
https://git.lyx.org/repos/lyx.git
synced 2024-12-27 06:19:36 +00:00
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:
parent
cff6e1e0cd
commit
5d75a3a116
@ -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>
|
2001-01-12 Lars Gullik Bjønnes <larsbj@lyx.org>
|
||||||
|
|
||||||
* ChangeLog: store old and begin new
|
* ChangeLog: store old and begin new
|
||||||
|
@ -1913,7 +1913,7 @@ void LyXText::InsertChar(BufferView * bview, char c)
|
|||||||
if (lyxrc.auto_number) {
|
if (lyxrc.auto_number) {
|
||||||
if (current_font.number() == LyXFont::ON) {
|
if (current_font.number() == LyXFont::ON) {
|
||||||
if (!isdigit(c) && !strchr("+-/*", c) &&
|
if (!isdigit(c) && !strchr("+-/*", c) &&
|
||||||
!(strchr(".,",c) &&
|
!(strchr(".,:",c) &&
|
||||||
cursor.pos() >= 1 &&
|
cursor.pos() >= 1 &&
|
||||||
cursor.pos() < cursor.par()->size() &&
|
cursor.pos() < cursor.par()->size() &&
|
||||||
GetFont(bview->buffer(),
|
GetFont(bview->buffer(),
|
||||||
@ -1939,7 +1939,7 @@ void LyXText::InsertChar(BufferView * bview, char c)
|
|||||||
cursor.par(),
|
cursor.par(),
|
||||||
cursor.pos() - 1,
|
cursor.pos() - 1,
|
||||||
current_font);
|
current_font);
|
||||||
} else if (strchr(".,", c) &&
|
} else if (strchr(".,:", c) &&
|
||||||
cursor.pos() >= 2 &&
|
cursor.pos() >= 2 &&
|
||||||
GetFont(bview->buffer(),
|
GetFont(bview->buffer(),
|
||||||
cursor.par(),
|
cursor.par(),
|
||||||
|
Loading…
Reference in New Issue
Block a user