]> git.lyx.org Git - lyx.git/blobdiff - src/LyXView.C
Improved support for docbook export in inset text.
[lyx.git] / src / LyXView.C
index 03550c4a1f5c92b48a8b5383f2902d294153a574..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();
 
@@ -234,13 +233,15 @@ void LyXView::updateWindowTitle()
        }
        if (title != last_title) {
                setWindowTitle(title);
+               last_title = title;
        }
+       last_title = title;
 }
 
 
 void LyXView::showState()
 {
-       message(CurrentState(view()));
+       message(currentState(view()));
        getToolbar()->update();
        menubar->update();
 }