]> git.lyx.org Git - lyx.git/blobdiff - src/paragraph.C
re-enable mathrm toggling with C-m (was disabled by accident)
[lyx.git] / src / paragraph.C
index 6cd8122d489c94bdc5bd64e55b7b6bf85f07fefa..76dd07f2b548ffde3e068cead2d1c0c47f682261 100644 (file)
@@ -86,6 +86,7 @@ Paragraph::Paragraph()
        enumdepth = 0;
        itemdepth = 0;
        bibkey = 0; // ale970302
+       params().clear();
 }
 
 
@@ -106,7 +107,8 @@ Paragraph::Paragraph(Paragraph * par)
        previous_->next_ = this;
        // end
 
-       bibkey = 0; // ale970302        
+       bibkey = 0; // ale970302
+       params().clear();
 }
 
 
@@ -850,7 +852,7 @@ void Paragraph::breakParagraph(BufferParams const & bparams,
 {
        // create a new paragraph
        Paragraph * tmp = new Paragraph(this);
-       tmp->layout(layout());
+       tmp->layout(textclasslist[bparams.textclass].defaultLayoutName());
        
        // remember to set the inset_owner
        tmp->setInsetOwner(inInset());