]> git.lyx.org Git - features.git/commitdiff
tex2lyx/text.cpp: fix other missing issues from r36947
authorUwe Stöhr <uwestoehr@web.de>
Mon, 20 Dec 2010 01:12:35 +0000 (01:12 +0000)
committerUwe Stöhr <uwestoehr@web.de>
Mon, 20 Dec 2010 01:12:35 +0000 (01:12 +0000)
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@36955 a592a061-630c-0410-9148-cb99ea01b6c8

src/tex2lyx/text.cpp

index 4e525fd0d637255a9f4bc8ecd4684946a124286a..45a1058aadc20e2dd51b15eceaae6c8717e26cc2 100644 (file)
@@ -903,7 +903,7 @@ void parse_environment(Parser & p, ostream & os, bool outer,
                        // the two environments as one otherwise (bug 5716)
                        docstring const sep = from_ascii("--Separator--");
                        TeX2LyXDocClass const & textclass(parent_context.textclass);
-                       if (LYX_FORMAT >= 273 && textclass.hasLayout(sep)) {
+                       if (textclass.hasLayout(sep)) {
                                Context newcontext(parent_context);
                                newcontext.layout = &(textclass[sep]);
                                newcontext.check_layout(os);
@@ -2432,13 +2432,13 @@ void parse_text(Parser & p, ostream & os, unsigned flags, bool outer,
                        skip_spaces_braces(p);
                }
 
-               else if (LYX_FORMAT >= 307 && t.cs() == "slash") {
+               else if (t.cs() == "slash") {
                        context.check_layout(os);
                        os << "\\SpecialChar \\slash{}\n";
                        skip_spaces_braces(p);
                }
 
-               else if (LYX_FORMAT >= 307 && t.cs() == "nobreakdash") {
+               else if (t.cs() == "nobreakdash") {
                        context.check_layout(os);
                        os << "\\SpecialChar \\nobreakdash\n";
                }