commit 6f221bab03d76eb2f74089bae68424edf760b44b Author: Uwe Stöhr <uwesto...@lyx.org> Date: Sun Nov 29 04:26:14 2015 +0100
lyx_2_2.py: fix a logic mistake - this message must be used for all cases diff --git a/lib/lyx2lyx/lyx_2_2.py b/lib/lyx2lyx/lyx_2_2.py index b16f6c3..b2fb407 100644 --- a/lib/lyx2lyx/lyx_2_2.py +++ b/lib/lyx2lyx/lyx_2_2.py @@ -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