]> git.lyx.org Git - lyx.git/blobdiff - src/bufferview_funcs.C
Fix deleting of paragraphs after undo (fix #236).
[lyx.git] / src / bufferview_funcs.C
index 7ab2815f37e98e8d186a80d11f2de3586fd7fd98..308c4dc796e7bf18b840c71cc4ae1d0aec7014b7 100644 (file)
@@ -159,9 +159,7 @@ string const currentState(BufferView * bv)
                Buffer * buffer = bv->buffer();
                LyXFont font = text->real_current_font;
                LyXFont const & defaultfont =
-                       textclasslist
-                       .TextClass(buffer->params.textclass)
-                       .defaultfont();
+                       textclasslist[buffer->params.textclass].defaultfont();
                font.reduce(defaultfont);
 
                state << _("Font:") << ' '
@@ -233,7 +231,7 @@ void toggleAndShow(BufferView * bv, LyXFont const & font, bool toggleall)
                        text->computeBidiTables(bv->buffer(), cursor.row());
                        if (cursor.boundary() != 
                            text->isBoundary(bv->buffer(), cursor.par(), cursor.pos(),
-                                            text->real_current_font) )
+                                            text->real_current_font))
                                text->setCursor(bv, cursor.par(), cursor.pos(),
                                                false, !cursor.boundary());
                }