]> git.lyx.org Git - features.git/commitdiff
Don't hardcode standard layout
authorGeorg Baum <Georg.Baum@post.rwth-aachen.de>
Thu, 29 Dec 2005 10:03:38 +0000 (10:03 +0000)
committerGeorg Baum <Georg.Baum@post.rwth-aachen.de>
Thu, 29 Dec 2005 10:03:38 +0000 (10:03 +0000)
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@10688 a592a061-630c-0410-9148-cb99ea01b6c8

src/ChangeLog
src/tabular.C

index 4ea6cc06fe6d0de1d9aae7ab28144084f72bb95e..36416579ca0461f6bac7d43b38984ee8bf6a3979 100644 (file)
@@ -1,3 +1,8 @@
+2005-12-29  Georg Baum  <Georg.Baum@post.rwth-aachen.de>
+
+       * tabular.C (toggleFixedWidth): Use default layout of text class
+       instead of hardcoded "Standard"
+
 2005-12-22  Jean-Marc Lasgouttes  <lasgouttes@lyx.org>
 
        * lyxfunc.C (dispatch): do not call getStatus again to determine
index acbdae6fc535cb9adefb409dcee026dd43dfa15a..10e8d938fc374924dfa8a4875a2fde4d344d5b23 100644 (file)
@@ -896,7 +896,9 @@ void toggleFixedWidth(LCursor & cur, InsetText * inset, bool fixedWidth)
 
        // 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();
 }