X-Git-Url: https://git.lyx.org/gitweb/?a=blobdiff_plain;f=src%2FLyXView.C;h=c5e3c53030edc39fa7802a352eb7885e994c0f01;hb=83e7c2cff73797fa8f22a8f2cabef003679da10e;hp=a0313ab7c6318f98eb3b6e6ed9302269dc62cb8b;hpb=bcd818abe33ae0396e8be01714c1fbf6aa346486;p=lyx.git diff --git a/src/LyXView.C b/src/LyXView.C index a0313ab7c6..c5e3c53030 100644 --- a/src/LyXView.C +++ b/src/LyXView.C @@ -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(); }