]> git.lyx.org Git - features.git/blobdiff - src/insets/InsetTabular.cpp
Now that Text knows its owner, use the associated Buffer access.
[features.git] / src / insets / InsetTabular.cpp
index 8ebfeb8110be19b35bf231ed363890daf9f7fcec..a576d2685a5684e1a758364236145b8d9d988cb5 100644 (file)
@@ -1030,7 +1030,7 @@ void toggleFixedWidth(Cursor & cur, InsetTableCell * inset, bool fixedWidth)
        // reset layout
        cur.push(*inset);
        // undo information has already been recorded
-       inset->getText(0)->setLayout(cur.bv().buffer(), 0, cur.lastpit() + 1,
+       inset->getText(0)->setLayout(0, cur.lastpit() + 1,
                        bp.documentClass().plainLayoutName());
        cur.pop();
 }