From: Uwe Stöhr Date: Sat, 15 Apr 2017 17:58:56 +0000 (+0200) Subject: lyx_2_2.py: fix reversion of colored boxes with special features X-Git-Tag: 2.3.0alpha1~56 X-Git-Url: https://git.lyx.org/gitweb/?a=commitdiff_plain;h=e07cb1da96197172a5343a339e9a2a78f2a7b414;p=features.git lyx_2_2.py: fix reversion of colored boxes with special features --- diff --git a/lib/lyx2lyx/lyx_2_2.py b/lib/lyx2lyx/lyx_2_2.py index ad76d5f9a8..b05d8fe612 100644 --- a/lib/lyx2lyx/lyx_2_2.py +++ b/lib/lyx2lyx/lyx_2_2.py @@ -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: