]> git.lyx.org Git - features.git/commitdiff
lyx_2_2.py: fix reversion of colored boxes with special features
authorUwe Stöhr <uwestoehr@lyx.org>
Sat, 15 Apr 2017 17:58:56 +0000 (19:58 +0200)
committerUwe Stöhr <uwestoehr@lyx.org>
Sat, 15 Apr 2017 17:58:56 +0000 (19:58 +0200)
lib/lyx2lyx/lyx_2_2.py

index ad76d5f9a83c24a294c14b5dad8e317df3d526da..b05d8fe6120a45a93213c1ad3a8793a0f58e4284 100644 (file)
@@ -1275,7 +1275,7 @@ def revert_colorbox(document):
         else:
             # we also neeed to load xcolor in the preamble but only once
             add_to_preamble(document, ["\\@ifundefined{rangeHsb}{\\usepackage{xcolor}}{}"])
-            document.body[einset + 1 : einset + 1] = put_cmd_in_ert("}")
+            document.body[einset + 2 : einset + 2] = put_cmd_in_ert("}")
             if framecolor != defaultframecolor:
                 document.body[binset:binset] = put_cmd_in_ert("\\fcolorbox{" + framecolor + "}{" + backcolor + "}{")
             else: