On Thursday 29 December 2005 09:28, Jose' Matos wrote: > Notice also that the same happens inside table cells without fixed size. > We have been able to get away with it because <para> in latex translates to > nothing. Those tables inset text are another good candidate for the naked > layouts.
Yes. Meanwhile I propose the attached patch to get rid of the hardcoded "Standard" layout (which I introduced recently because I did not know of the default layout). Removing a fixed column width now creates the same layout as is created for new cells. OK to commit? Georg
Index: src/ChangeLog =================================================================== RCS file: /usr/local/lyx/cvsroot/lyx-devel/src/ChangeLog,v retrieving revision 1.2345 diff -u -p -r1.2345 ChangeLog --- src/ChangeLog 23 Dec 2005 12:19:56 -0000 1.2345 +++ src/ChangeLog 29 Dec 2005 09:19:55 -0000 @@ -1,3 +1,8 @@ +2005-12-29 Georg Baum <[EMAIL PROTECTED]> + + * tabular.C (toggleFixedWidth): Use default layout of text class + instead of hardcoded "Standard" + 2005-12-22 Jean-Marc Lasgouttes <[EMAIL PROTECTED]> * lyxfunc.C (dispatch): do not call getStatus again to determine Index: src/tabular.C =================================================================== RCS file: /usr/local/lyx/cvsroot/lyx-devel/src/tabular.C,v retrieving revision 1.228 diff -u -p -r1.228 tabular.C --- src/tabular.C 28 Nov 2005 11:52:01 -0000 1.228 +++ src/tabular.C 29 Dec 2005 09:19:58 -0000 @@ -896,7 +896,9 @@ void toggleFixedWidth(LCursor & cur, Ins // reset layout cur.push(*inset); - inset->getText(0)->setLayout(0, cur.lastpit() + 1, "Standard"); + // undo information has already been recorded + inset->getText(0)->setLayout(0, cur.lastpit() + 1, + bp.getLyXTextClass().defaultLayoutName()); cur.pop(); }