]> git.lyx.org Git - features.git/commitdiff
Fix reversion of box insets.
authorEnrico Forestieri <forenr@lyx.org>
Thu, 29 May 2014 08:44:02 +0000 (10:44 +0200)
committerEnrico Forestieri <forenr@lyx.org>
Thu, 29 May 2014 08:44:02 +0000 (10:44 +0200)
lib/lyx2lyx/lyx_2_1.py

index 49993684cbb8ad3142bd57e81f282a55550ec207..6752eb981782bcf039231fa6e082afad2115d90a 100644 (file)
@@ -4365,7 +4365,7 @@ def revert_mbox_fbox(document):
             i += 1
             continue
         BeginLayout = find_token(document.body, "\\begin_layout Plain Layout", j)
-        EndLayout = find_token(document.body, "\\end_layout", BeginLayout)
+        EndLayout = find_end_of_layout(document.body, BeginLayout)
         # replace if width is ""
         if (width == '""'):
             document.body[EndLayout:k + 1] = put_cmd_in_ert("}")