]> git.lyx.org Git - features.git/blobdiff - src/insets/InsetTabular.cpp
Manage the initial setting of Default or Plain Layout more simply.
[features.git] / src / insets / InsetTabular.cpp
index 373cd35758efedbd21da31723aa51722ef46e038..427e7020b6171dc42960b9979f771395fb75ebef 100644 (file)
@@ -490,7 +490,6 @@ Tabular::CellData::CellData(Buffer & buf)
          inset(new InsetTableCell(buf))
 {
        inset->setBuffer(const_cast<Buffer &>(buf));
-       inset->paragraphs().back().setLayout(buf.params().documentClass().plainLayout());
 }
 
 
@@ -2841,7 +2840,7 @@ Tabular::BoxType Tabular::useParbox(idx_type cell) const
 /////////////////////////////////////////////////////////////////////
 
 InsetTableCell::InsetTableCell(Buffer & buf)
-       : InsetText(buf), isFixedWidth(false),
+       : InsetText(buf, InsetText::PlainLayout), isFixedWidth(false),
          contentAlign(LYX_ALIGN_CENTER)
 {}