On Tue, Mar 28, 2000 at 05:36:06PM +0100, Angus Leeming wrote:
> Creating emphasised text in a paragraph by:
> 
> blah blah blah M-Ce is M-C_ blah blah blah
> 
> where _ indicates a space, and then viewing the dvi output
> creates the following LaTeX error:
> 
> Aside from the fact that LyX views this as an error rather
> than a warning, this problem is NOT present if one types
> the text normally and then emphasises it, by highlighting
> it and then typing M-Ce.
> 

This is my fault :(. The following patch fix (half of) the problem.
I''ll submit a full fix shortly.
Index: lyx_cb.C
===================================================================
RCS file: /home/dekel/CVS/lyx/lyx_cb.C,v
retrieving revision 1.30
retrieving revision 1.32
diff -u -p -r1.30 -r1.32
--- lyx_cb.C    2000/03/26 21:27:12     1.30
+++ lyx_cb.C    2000/03/28 18:57:15     1.32
@@ -2154,7 +2154,7 @@ void LangCB(string const & l)
 
 void StyleReset()
 {
-       LyXFont font(LyXFont::ALL_INHERIT);
+       LyXFont font(LyXFont::ALL_INHERIT, ignore_language);
        ToggleAndShow(current_view, font);
 }
 
@@ -2691,11 +2691,9 @@ extern "C" void DocumentApplyCB(FL_OBJEC
    
        if (!current_view->available())
                return;
-       if (lyxrc.rtl_support) {
-               current_view->text->SetCursor(current_view->text->cursor.par,
-                                             current_view->text->cursor.pos);
-               current_view->setState();
-       }
+       current_view->text->SetCursor(current_view->text->cursor.par,
+                                     current_view->text->cursor.pos);
+       current_view->setState();
 
        LyXTextClassList::ClassList::size_type new_class =
                fl_get_choice(fd_form_document->choice_class) - 1;

Reply via email to