]> git.lyx.org Git - features.git/commitdiff
lyx_2_2.py: fix a logic mistake
authorUwe Stöhr <uwestoehr@lyx.org>
Sun, 29 Nov 2015 03:26:14 +0000 (04:26 +0100)
committerUwe Stöhr <uwestoehr@lyx.org>
Sun, 29 Nov 2015 03:26:14 +0000 (04:26 +0100)
- this message must be used for all cases

lib/lyx2lyx/lyx_2_2.py

index b16f6c393a22c4a2c721797cad933402ac359140..b2fb40740b4bc6814b89b54d3d3ba010b300a6ce 100644 (file)
@@ -2142,8 +2142,7 @@ def revert_solution(document):
             theoremName = "newtheorem"
         j = find_end_of_layout(document.body, i)
         if j == -1:
-            if starred == True:
-                document.warning("Malformed LyX document: Can't find end of " + LyXName + " layout")
+            document.warning("Malformed LyX document: Can't find end of " + LyXName + " layout")
             i += 1
             continue
         # if this is not a consecutive env, add start command