]> git.lyx.org Git - lyx.git/blobdiff - src/LyXView.C
Improved support for docbook export in inset text.
[lyx.git] / src / LyXView.C
index a0313ab7c6318f98eb3b6e6ed9302269dc62cb8b..c5e3c53030edc39fa7802a352eb7885e994c0f01 100644 (file)
@@ -201,11 +201,10 @@ void LyXView::updateLayoutChoice()
                toolbar->updateLayoutList(true);
                last_textclass = int(buffer()->params.textclass);
                current_layout = 0;
-       } else
+       } else {
                toolbar->updateLayoutList(false);
-
+       }
        
-
        LyXTextClass::size_type layout =
                bufferview->text->cursor.par()->getLayout();
 
@@ -236,12 +235,13 @@ void LyXView::updateWindowTitle()
                setWindowTitle(title);
                last_title = title;
        }
+       last_title = title;
 }
 
 
 void LyXView::showState()
 {
-       message(CurrentState(view()));
+       message(currentState(view()));
        getToolbar()->update();
        menubar->update();
 }