X-Git-Url: https://git.lyx.org/gitweb/?a=blobdiff_plain;f=src%2FLyXView.C;h=c5e3c53030edc39fa7802a352eb7885e994c0f01;hb=c93e9dcbc59d0b404561dbc7c373716f11fc13f1;hp=be476aa52228d02f8ec672f95f102e0ff435f26c;hpb=8254b16fd11fea6224e4db951839747e642115d3;p=lyx.git diff --git a/src/LyXView.C b/src/LyXView.C index be476aa522..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,6 +235,7 @@ void LyXView::updateWindowTitle() setWindowTitle(title); last_title = title; } + last_title = title; }