]> git.lyx.org Git - features.git/commitdiff
* src/frontends/LyXView.C (setBuffer): update the list of layouts
authorJean-Marc Lasgouttes <lasgouttes@lyx.org>
Thu, 24 Aug 2006 09:46:29 +0000 (09:46 +0000)
committerJean-Marc Lasgouttes <lasgouttes@lyx.org>
Thu, 24 Aug 2006 09:46:29 +0000 (09:46 +0000)
before setting the current layout.

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@14830 a592a061-630c-0410-9148-cb99ea01b6c8

src/frontends/LyXView.C

index 57623e8b9be9765408d293d89f83826678d76728..f531278ee2e50f3e5abfee32c7b87848dbf1f8cc 100644 (file)
@@ -139,6 +139,8 @@ void LyXView::setBuffer(Buffer * b)
 
        work_area_->bufferView().setBuffer(b);
 
+       updateLayoutChoice();
+
        if (work_area_->bufferView().buffer()) {
                // Buffer-dependent dialogs should be updated or
                // hidden. This should go here because some dialogs (eg ToC)
@@ -150,7 +152,6 @@ void LyXView::setBuffer(Buffer * b)
 
        updateMenubar();
        updateToolbars();
-       updateLayoutChoice();
        updateWindowTitle();
        redrawWorkArea();
 }