]> git.lyx.org Git - features.git/commitdiff
tex2lyx/text.cpp: code simplification
authorUwe Stöhr <uwestoehr@lyx.org>
Mon, 18 May 2015 22:24:13 +0000 (00:24 +0200)
committerUwe Stöhr <uwestoehr@lyx.org>
Mon, 18 May 2015 22:24:13 +0000 (00:24 +0200)
src/tex2lyx/text.cpp

index 5073562cdf4acd5a37e3b3873e860ea72f489d85..60fa6257d9f6ec8f4451a140b7b11d95f9f3a084 100644 (file)
@@ -1222,12 +1222,9 @@ void parse_box(Parser & p, ostream & os, unsigned outer_flags,
            && (fboxrule != "" || fboxsep != "" || shadow_size != "")) {
                // in this case we assume that the closing brace is from the box settings
                // therefore reset these values for the next box
-               if (fboxrule != "")
-                       fboxrule = "";
-               if (fboxsep != "")
-                       fboxsep = "";
-               if (shadow_size != "")
-                       shadow_size = "";
+               fboxrule = "";
+               fboxsep = "";
+               shadow_size = "";
        }
 
        // all boxes except of Frameless and Shaded require calc