]> git.lyx.org Git - features.git/commitdiff
Fix typing of digits in RTL text, which was broken way back during the Font/Language...
authorDov Feldstern <dov@lyx.org>
Sat, 16 Feb 2008 18:39:20 +0000 (18:39 +0000)
committerDov Feldstern <dov@lyx.org>
Sat, 16 Feb 2008 18:39:20 +0000 (18:39 +0000)
The problem was that when typing a digit in RTL text, the language was being
switched to LTR, which is wrong.

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@23037 a592a061-630c-0410-9148-cb99ea01b6c8

src/Text3.cpp

index d5c1051080f85566edc0938071a51a744abfd385..5d3246fa52d481aa27cebe274608fb16f9400a82 100644 (file)
@@ -374,7 +374,7 @@ void Text::number(Cursor & cur)
 {
        FontInfo font = ignore_font;
        font.setNumber(FONT_TOGGLE);
-       toggleAndShow(cur, this, Font(font));
+       toggleAndShow(cur, this, Font(font, ignore_language));
 }