When creating a new document, I see:
Trying to select non existent layout type Standard
This is because LyXView::setBuffer sets the layout before updating
layout list.
Abdel, is the following patch OK?
JMarc
Index: src/frontends/LyXView.C
===================================================================
--- src/frontends/LyXView.C (revision 14827)
+++ src/frontends/LyXView.C (working copy)
@@ -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();
}