]> git.lyx.org Git - features.git/commitdiff
merge identical code from if/else branches to a single line
authorGeorg Baum <Georg.Baum@post.rwth-aachen.de>
Tue, 2 Jan 2007 12:27:26 +0000 (12:27 +0000)
committerGeorg Baum <Georg.Baum@post.rwth-aachen.de>
Tue, 2 Jan 2007 12:27:26 +0000 (12:27 +0000)
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@16466 a592a061-630c-0410-9148-cb99ea01b6c8

src/tex2lyx/context.C

index b87a914d0c15269092da81be102615fbcef35952..12404d9d12711564dbd08203c6a5500425e4223b 100644 (file)
@@ -137,12 +137,11 @@ void Context::check_layout(ostream & os)
                                             font, normalfont);
                                deeper_paragraph = true;
                        }
-                       need_layout = false;
                } else {
                        // No list-like environment
                        begin_layout(os, layout, font, normalfont);
-                       need_layout=false;
                }
+               need_layout = false;
                need_end_layout = true;
                if (!extra_stuff.empty()) {
                        os << extra_stuff;