rgheck wrote:
> URL: http://www.lyx.org/trac/changeset/27129
> Log:
> The last commit was, uhh, not what I intended.

However, now lyx crashes on New Document:

lassert.cpp(21): ASSERTION !name.empty() VIOLATED IN TextClass.cpp:882          
    
We failed to find the layout '' in the layout list. You MUST investigate!       
    
[snip]
lassert.cpp(21): ASSERTION false VIOLATED IN TextClass.cpp:895                  
    

lyx: SIGSEGV signal caught

Bringing setPlainOrDefaultLayout back to InsetText::initParagraphs() fixes the 
crash. Did you just forget to readd it or do you have different plans?

Index: src/insets/InsetText.cpp
===================================================================
--- src/insets/InsetText.cpp    (Revision 27133)
+++ src/insets/InsetText.cpp    (Arbeitskopie)
@@ -105,6 +105,7 @@
        paragraphs().push_back(Paragraph());
        Paragraph & ourpar = paragraphs().back();
        ourpar.setInsetOwner(this);
+       ourpar.setPlainOrDefaultLayout(buffer_->params().documentClass());
 }

Jürgen

Reply via email to